mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
bug 304139: [Scanner Discovery] Compiler inspection does not work for
gcc with non-english locale
This commit is contained in:
parent
7b7b645804
commit
3586ae698f
1 changed files with 2 additions and 1 deletions
|
@ -273,7 +273,8 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
|
||||||
// of the language as long as the encoding is set to UTF-8.
|
// of the language as long as the encoding is set to UTF-8.
|
||||||
// English language is chosen because parser relies on English messages
|
// English language is chosen because parser relies on English messages
|
||||||
// in the output of the 'gcc -v' command.
|
// 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;
|
return props;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue