How to change the language used within the Cygwin terminal?
13,915
Solution 1
Try set env variable: LANG='en_GB.UTF-8'
Reference: http://gcc.gnu.org/onlinedocs/gcc-4.4.0/gcc/Environment-Variables.html#Environment-Variables/
Solution 2
adding:
export LANG='en_GB.UTF-8'
to:
~/.bashrc
did the trick for me.
Solution 3
In my case the problem was fixed after changing locale (en_GB) and character set (UTF-8) on the Text page of the mintty
Options
Related videos on Youtube
Author by
mrgloom
Updated on August 10, 2022Comments
-
mrgloom almost 2 years
When I'm using
gcc
in Cygwin I'm getting error messages in Russian which, for instance, looks like the following:$ gcc -Wall kmeans.c -o kmeans kmeans.c:260:1: предупреждение: неявное приведение большого целого значения к беззнаковому типу [-Woverflow] size_t used_size = ULLONG_MAX; // size of each file used, binary file only
However I prefer to work in English. Thus, how can I change permanently the language that is used within the Cygwin terminal?
-
mrgloom over 10 yearsIt works, but I need to write it at every start if cygwin terminal, can it be done once and for forever?
-
mrgloom over 10 yearsthat helped superuser.com/questions/374892/…
-
IProblemFactory over 10 yearsOf course you can, just add it to
~/.bash_profile
- that file is read every time terminal starts. -
Kyung Lee over 5 yearsFor Windows10 users, create a new environment variable, where the variable name is
LANG
, the variable value isen_GB.URF-8
. -
Chan Kim over 3 yearsHi, my 'Downloads' folder name is in Korea (다운로드) and my 'Desktop' folder name is in Korean (바탕화면). Can I change those folder names automatically to English or should I change them manually?
-
IProblemFactory over 3 years@ChanKim you should change ur system language then ;)