localizationmingwmsys2non-english

Non-localized version of MinGW/MSYS2?


Is there a way to download MinGW/MSYS2 with gcc, that is not localized? Localized gcc causes all warnings to become errors in CodeBlocks, if the system language is not English.
This bug is also reported here:

http://forums.codeblocks.org/index.php/topic,9489.msg67120.html

The thread also contains a working solution to the problem, but if one could download a non-localized version in the first place, this would be much more convenient.


Solution

  • Gcc & G++ in mingw use the environment variable LC_ALL to define the language at top level (if this variable is set), defaulting with the system locale if available, and then english if the locale does not exist.

    If you want to force those tools to output their messages in english, just add/edit the environment variable LC_ALL with the value en_US.UTF-8