Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Gvozdev2011-12-12 18:06:09 -0500
committerAndrew Gvozdev2011-12-12 18:06:50 -0500
commit3586ae698fa3a941ebfc0fc41d9c50b2fad84ffa (patch)
tree1b2ba6cfe63831ed62fcb8b13a5c7f45b9dff490 /build/org.eclipse.cdt.make.core
parent7b7b6458041cd83a091d99bc013c324eb9078fa7 (diff)
downloadorg.eclipse.cdt-3586ae698fa3a941ebfc0fc41d9c50b2fad84ffa.tar.gz
org.eclipse.cdt-3586ae698fa3a941ebfc0fc41d9c50b2fad84ffa.tar.xz
org.eclipse.cdt-3586ae698fa3a941ebfc0fc41d9c50b2fad84ffa.zip
bug 304139: [Scanner Discovery] Compiler inspection does not work for
gcc with non-english locale
Diffstat (limited to 'build/org.eclipse.cdt.make.core')
-rw-r--r--build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java
index 9d482eb606..5dd879706f 100644
--- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java
+++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig2/DefaultRunSIProvider.java
@@ -273,7 +273,8 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
// of the language as long as the encoding is set to UTF-8.
// English language is chosen because parser relies on English messages
// in the output of the 'gcc -v' command.
- props.put("LC_ALL", "en_US.UTF-8"); //$NON-NLS-1$ //$NON-NLS-2$
+ props.put("LANGUAGE", "en"); // override for GNU gettext //$NON-NLS-1$ //$NON-NLS-2$
+ props.put("LC_ALL", "en_US.UTF-8"); // for other parts of the system libraries //$NON-NLS-1$ //$NON-NLS-2$
return props;
}

Back to the top