From 405b8738be8d066076cc1ebb76a402ce5a197023 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 17 Oct 2011 20:22:29 +0200 Subject: [PATCH] ToolChain: Fix parsing of gcc output and localization Task-number: QTCREATORBUG-6253 Change-Id: Icb5b204e93e216c94b369349992d1eb21ec60a62 Reviewed-by: Tobias Hunger --- src/plugins/projectexplorer/gcctoolchain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/projectexplorer/gcctoolchain.cpp b/src/plugins/projectexplorer/gcctoolchain.cpp index d593b8718c..d36d9de74d 100644 --- a/src/plugins/projectexplorer/gcctoolchain.cpp +++ b/src/plugins/projectexplorer/gcctoolchain.cpp @@ -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); -- 2.11.0