Non-localized version of MinGW?

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

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

The stream also contains a working solution to the problem, but if you can first download a non-localized version, it will be much more convenient.

+4
source share
3 answers

Gcc and g ++ in mingw use the LC_ALL environment variable to define the language at the top level (if this variable is set), the system locale is used by default if it is available, and then English if the locale does not exist.

If you want to make these tools display your messages in English, just add / change the LC_ALL environment variable with the value ru_US.UTF-8

+4
source

I am sure that the following is not a “recommended solution”, but I personally refused to search for it. So: my locale is yes, which causes exactly the problem you are describing.

My decision? Just delete the language used, as a result of which the system will work with English by default: that is, in my case, delete the folder:

C:\MinGW\share\locale\da 

Why on any compiler in C / C ++ would like their tools to output localized error messages outside of me ...

+5
source

Use commmand

 locale -a 

to view a list of allowed locales. To use USA English, I set below environment variables in the bash source file

 export LANG=en_US.UTF-8 export LC_CTYPE="en_US.UTF-8" export LC_NUMERIC="en_US.UTF-8" export LC_TIME="en_US.UTF-8" export LC_COLLATE="en_US.UTF-8" export LC_MONETARY="en_US.UTF-8" export LC_MESSAGES="en_US.UTF-8" 
+1
source

Source: https://habr.com/ru/post/1396291/


All Articles