Cygwin zh_CN.GB18030 locale?
Mark Liam Brown
brownmarkliam@gmail.com
Mon Nov 25 17:21:00 GMT 2024
On Thu, Nov 21, 2024 at 12:39 PM Corinna Vinschen via Cygwin
<cygwin@cygwin.com> wrote:
>
> 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.
>
locale -a does not list GB18030, and autoconf/cmake and others will
then think the GB18030 locale is not installed.
locale -a should list ALL supported locales, with FULL
language[_territory][.codeset][@modifier] string, and not just the
legacy language[_territory] string, which is pretty useless for
autoconf/cmake.
Mark
--
IT Infrastructure Consultant
Windows, Linux
More information about the Cygwin
mailing list