ToolChain: Fix parsing of gcc output and localization

Task-number: QTCREATORBUG-6253
Change-Id: Icb5b204e93e216c94b369349992d1eb21ec60a62
Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
Tobias Hunger
2011-10-17 20:22:29 +02:00
parent 5a7d6d66fa
commit 405b8738be

View File

@@ -72,8 +72,7 @@ static QByteArray runGcc(const QString &gcc, const QStringList &arguments, const
QProcess cpp;
// Force locale: This function is used only to detect settings inside the tool chain, so this is save.
QStringList environment(env);
environment.append(QLatin1String("LC_ALL"));
environment.append(QLatin1String("C"));
environment.append(QLatin1String("LC_ALL=C"));
cpp.setEnvironment(environment);
cpp.start(gcc, arguments);