Cygwin zh_CN.GB18030 locale?

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Nov 21 11:38:53 GMT 2024


On Nov 21 12:25, Corinna Vinschen via Cygwin wrote:
> On Nov 21 05:57, Dan Shelton via Cygwin wrote:
> > locale -a | grep 18030
> 
> You're confusing locale with codeset (or charset).
> 
>   $ locale -a | grep zh_CN
>   zh_CN
>   zh_CN.utf8
>   zh_CN.utf8@cjknarrow
>   zh_CN@cjknarrow
> 
>   $ locale -m | grep 18030
>   GB18030
> 
> Note that for compat reasons, the default codeset of zh_CN is gb2312,
> so you have to specify a different codeset explicitely.
> 
>   export LC_MESSAGES=zh_CN.GB18030

Please check additionally:

  $ locale -av
  $ cat /proc/locales
  $ cat /proc/codesets

Those might be pretty helpful.


Corinna


More information about the Cygwin mailing list