Git: Use C locale when parsing the command output

Task-number: QTCREATORBUG-19017
Change-Id: Ib77d66e22d227d43245d352905f9b095f7d0f42b
Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
Orgad Shaneh
2017-10-11 05:28:41 +03:00
committed by Orgad Shaneh
parent fa43c0d2b9
commit 5d5d0497e5
3 changed files with 11 additions and 3 deletions

View File

@@ -786,8 +786,10 @@ void VcsBasePlugin::setProcessEnvironment(QProcessEnvironment *e,
bool forceCLocale,
const QString &sshPromptBinary)
{
if (forceCLocale)
if (forceCLocale) {
e->insert("LANG", "C");
e->insert("LANGUAGE", "C");
}
if (!sshPromptBinary.isEmpty())
e->insert("SSH_ASKPASS", sshPromptBinary);
}