summaryrefslogtreecommitdiff
path: root/src/plugins/cmakeprojectmanager/makestep.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2012-11-26 10:52:28 +0100
committerEike Ziller <eike.ziller@digia.com>2012-11-26 10:52:28 +0100
commit387f5a70065b6a21143f30a693b3946f43145aa1 (patch)
tree19499220eb78ffc2b83174768e4db33f36d33242 /src/plugins/cmakeprojectmanager/makestep.cpp
parentc9afad98efee2e9d7eb09407395c8ad00f175f17 (diff)
parent9820278a708024cc1ae01372dfafabe4ff295b88 (diff)
downloadqt-creator-387f5a70065b6a21143f30a693b3946f43145aa1.tar.gz
Merge remote-tracking branch 'origin/2.6'
Conflicts: src/plugins/cpptools/cppcompletion_test.cpp src/plugins/projectexplorer/kitmanagerconfigwidget.cpp src/plugins/qmlprojectmanager/qmlprojectapplicationwizard.cpp src/plugins/qtsupport/baseqtversion.cpp tests/auto/cplusplus/findusages/tst_findusages.cpp Change-Id: Idd2abc09753a71a6c252bfa9914274459b2c7e63
Diffstat (limited to 'src/plugins/cmakeprojectmanager/makestep.cpp')
-rw-r--r--src/plugins/cmakeprojectmanager/makestep.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/plugins/cmakeprojectmanager/makestep.cpp b/src/plugins/cmakeprojectmanager/makestep.cpp
index 18dc5d213c..6ad3304d00 100644
--- a/src/plugins/cmakeprojectmanager/makestep.cpp
+++ b/src/plugins/cmakeprojectmanager/makestep.cpp
@@ -188,14 +188,13 @@ bool MakeStep::init()
ProcessParameters *pp = processParameters();
pp->setMacroExpander(bc->macroExpander());
- if (m_useNinja) {
- Utils::Environment env = bc->environment();
- if (!env.value(QLatin1String("NINJA_STATUS")).startsWith(m_ninjaProgressString))
- env.set(QLatin1String("NINJA_STATUS"), m_ninjaProgressString + QLatin1String("%o/sec] "));
- pp->setEnvironment(env);
- } else {
- pp->setEnvironment(bc->environment());
- }
+ Utils::Environment env = bc->environment();
+ // Force output to english for the parsers. Do this here and not in the toolchain's
+ // addToEnvironment() to not screw up the users run environment.
+ env.set(QLatin1String("LC_ALL"), QLatin1String("C"));
+ if (m_useNinja && !env.value(QLatin1String("NINJA_STATUS")).startsWith(m_ninjaProgressString))
+ env.set(QLatin1String("NINJA_STATUS"), m_ninjaProgressString + QLatin1String("%o/sec] "));
+ pp->setEnvironment(env);
pp->setWorkingDirectory(bc->buildDirectory());
pp->setCommand(makeCommand(tc, bc->environment()));
pp->setArguments(arguments);