Fixed problem with system headers detection for translated version of GCC.

Merge-request: 1484
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
Sergey Belyashov
2009-09-14 12:24:28 +02:00
committed by Oswald Buddenhagen
parent 6ce0a236f5
commit 149b7fd50f

View File

@@ -185,6 +185,7 @@ QList<HeaderPath> GccToolChain::systemHeaderPaths()
QProcess cpp;
ProjectExplorer::Environment env = ProjectExplorer::Environment::systemEnvironment();
addToEnvironment(env);
env.set(QLatin1String("LC_ALL"), QLatin1String("C")); //override current locale settings
cpp.setEnvironment(env.toStringList());
cpp.setReadChannelMode(QProcess::MergedChannels);
cpp.start(m_gcc, arguments);