GB18030 locale

Corinna Vinschen corinna-cygwin@cygwin.com
Sat Jul 29 09:23:52 GMT 2023


On Jul 28 21:54, Bruno Haible via Cygwin wrote:
> Corinna Vinschen wrote:
> >   test-fnmatch-5.sh is SKIPped because we don't support zh_CN.GB18030.
> 
> Hmm? When I read winsup/cygwin/release/3.5.0 and the commit
> 5da71b6059956a8f20a6be02e82867aa28aa3880, it seems the zh_CN.GB18030
> locale (which on native Windows is called "Chinese_China.54936")
> should be supported.

You're right, I always had the idea to add GB18030 support and forgot
that I supposedly did that in 5da71b605995 ("Cygwin: add support for
GB18030 codeset"), sorry.

However, on debugging this, I see it's totally broken.  Trying to fix
this in the existing functions is futile.  We need dedicated
support functions for GB18030, kind of like the FreeBSD functions,
just with extra support for surrogate pairs, as with our UTF8 stuff.


Corinna


More information about the Cygwin mailing list