forked from qt-creator/qt-creator
Set LC_MESSAGES instead of LC_ALL for parsing the error output
Task-number: QTCREATORBUG-15855 Change-Id: I05aa83acb356840cfdacc92796b190fb8754ada0 Reviewed-by: hjk <hjk@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -212,6 +212,26 @@ Environment Environment::systemEnvironment()
|
||||
return *staticSystemEnvironment();
|
||||
}
|
||||
|
||||
const char lcMessages[] = "LC_MESSAGES";
|
||||
const char englishLocale[] = "en_US.utf8";
|
||||
|
||||
void Environment::setupEnglishOutput(Environment *environment)
|
||||
{
|
||||
environment->set(QLatin1String(lcMessages), QLatin1String(englishLocale));
|
||||
}
|
||||
|
||||
void Environment::setupEnglishOutput(QProcessEnvironment *environment)
|
||||
{
|
||||
environment->insert(QLatin1String(lcMessages), QLatin1String(englishLocale));
|
||||
}
|
||||
|
||||
void Environment::setupEnglishOutput(QStringList *environment)
|
||||
{
|
||||
Environment env(*environment);
|
||||
setupEnglishOutput(&env);
|
||||
*environment = env.toStringList();
|
||||
}
|
||||
|
||||
void Environment::clear()
|
||||
{
|
||||
m_values.clear();
|
||||
|
||||
Reference in New Issue
Block a user