summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/makestep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qt4projectmanager/makestep.cpp')
-rw-r--r--src/plugins/qt4projectmanager/makestep.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/plugins/qt4projectmanager/makestep.cpp b/src/plugins/qt4projectmanager/makestep.cpp
index 0feadd5924..5dc01d82fc 100644
--- a/src/plugins/qt4projectmanager/makestep.cpp
+++ b/src/plugins/qt4projectmanager/makestep.cpp
@@ -143,6 +143,11 @@ bool MakeStep::init()
pp->setMacroExpander(bc->macroExpander());
Utils::Environment environment = 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.
+ environment.set(QLatin1String("LC_ALL"), QLatin1String("C"));
+
pp->setEnvironment(environment);
QString workingDirectory;
@@ -342,7 +347,13 @@ void MakeStepConfigWidget::updateDetails()
ProjectExplorer::ProcessParameters param;
param.setMacroExpander(bc->macroExpander());
param.setWorkingDirectory(bc->buildDirectory());
- param.setEnvironment(bc->environment());
+ Utils::Environment environment = 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.
+ environment.set(QLatin1String("LC_ALL"), QLatin1String("C"));
+ param.setEnvironment(environment);
+
QString makeCmd = bc->makeCommand();
if (!m_makeStep->m_makeCmd.isEmpty())
makeCmd = m_makeStep->m_makeCmd;