https://cygwin.com/pipermail/cygwin/2022-December/252571.html
Cygwin's default locale is "C.UTF-8" as far as LC_CTYPE settings
are concerned. However, while __global_locale contains fixed
mbtowc and wctomb pointers, the lc_ctype_T pointer is still pointing
to _C_ctype_locale, representing the standard "C" locale.
The problem with this is that the codeset name as well as MB_CUR_MAX
is wrong.
Fix this by introducing a new lc_ctype_T structure called
_C_utf8_ctype_locale, setting the default codeset to "UTF-8" and
MB_CUR_MAX to 6. Use this as lc_ctype_T pointer in __global_locale
by default on Cygwin.
Fixes:
|
||
---|---|---|
.. | ||
argz | ||
ctype | ||
errno | ||
iconv | ||
include | ||
locale | ||
machine | ||
misc | ||
posix | ||
reent | ||
search | ||
signal | ||
ssp | ||
stdio | ||
stdio64 | ||
stdlib | ||
string | ||
sys | ||
syscalls | ||
time | ||
unix | ||
xdr | ||
Makefile.inc | ||
Makefile.unidata | ||
acinclude.m4 | ||
libc.in.xml | ||
libc.texi | ||
sys.tex |