質問

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?

役に立ちましたか?

他のヒント

adding:

export LANG='en_GB.UTF-8'

to:

~/.bashrc

did the trick for me.

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

enter image description here

Another workaround is:

export LC_ALL=C; unset LANGUAGE
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top