FS#24509 - GCC native language support should be disabled

Attached to Project: Arch Linux
Opened by Ruben Van Boxem (rubenvb) - Monday, 30 May 2011, 20:31 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 30 May 2011, 22:03 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The GCC binaries have nls (native language support) enabled. This makes any third party app that tries to parse error output very unusable (at least QtCreator 2.1 can't parse the output).

On top of this, it is very impossible to translate the error messages to ask for help on the internet.

Additional info:
* package version: 4.6.0-5

Steps to reproduce:
Install GCC, set language to something non-english, try to compile a bad source file (one which produces warnings or errors, heck even a plain "gcc" will report an error in the native language).
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 30 May 2011, 22:03 GMT
Reason for closing:  Not a bug
Additional comments about closing:  see comments
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 30 May 2011, 20:39 GMT
This doesn't look like a bug. You are free to set your locale to what you want when using GCC. The fact that non-English output may make other programs malfunction is either a bug in these programs or a lack of reading their documentation to know that the locale should be set to English when using them.
Comment by Ruben Van Boxem (rubenvb) - Monday, 30 May 2011, 20:41 GMT
Can you set an application specific locale? It would be very stupid to have to change the system's locale each time I decide to use GCC.
Comment by Rémy Oudompheng (remyoudompheng) - Monday, 30 May 2011, 20:50 GMT
The goal of environment variables is to affect all programs that receive them. If you think that QtCreator should launch gcc in an English locale, send a feature request to the authors so that it always launches gcc with the appropriate environment variables. Alternatively, fix your shell configuration or write a shell script that launches gcc with your preferred locale and use it as your default compiler.
Comment by CalimeroTeknik (Calimero) - Monday, 30 May 2011, 21:03 GMT
You should ask the Qtcreator developers to run gcc with LANG=C gcc …
More generally, to change temporarily the locale of any app, use LANG=whatever your_app.
Comment by Ruben Van Boxem (rubenvb) - Monday, 30 May 2011, 21:08 GMT
Ah, well QtCreator allows to modify any environment variable. Set LANG to C and everything works as it should. Thanks for the awesomely quick response. Sorry for the noise.

Loading...