Gnu make is installed with the OS language

I installed the latest version of GNU on my Windows machine.

The installer decided to configure the language as an OS language, which I was not offered. I want it to be English. My OS is in Swedish.

I remember that I had a similar problem with another GNU program (I can’t remember which one), which was solved by adding env var "lang" with the value "c".

How can I switch the GNU language to English?

+4
source share
2 answers

I don't know if Windows has case-sensitive environment variables, but I would expect GNU to decide to completely switch to English using LANG=C If this does not help, try LC_ALL=C or check if there is a locale command in the mingw environment that can help you show the exact locale settings.

If you set these environment variables from the mingw bash environment, make sure that the shell exports these environment variables to running processes (for example, ask make ). That is, either set the values ​​using export FOO=bar , or export them using a separate export FOO after setting them using FOO=bar .

(I assume that mingw behaves like a standard GNU environment when it comes to locales.)

+1
source

My OS is Japanese, so the terminal displayed gibberish. Setting the LANGUAGE variable worked for me:

 > make make: *** ?^?[?Q?b?g?a?w'e?3?e?A?¨?c?,, makefile ?a?c?A?c?e?U?1?n. '†?~. > set LANGUAGE=en_US > make make: *** No targets specified and no makefile found. Stop. 

Although the documentation suggests otherwise , I have not been able to set other environment variables.

0
source

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


All Articles