This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH/RFA] Fix EUCJP multibyte/widechar conversion
On Apr 8 16:34, Jeff Johnston wrote:
> Ok.
>
> -- Jeff J.
>
> Corinna Vinschen wrote:
>> [...]
>>> * libc/locale/locale.c (loadlocale): Set mbc_max to 3 for EUCJP.
>>> * libc/stdlib/mbctype.h (_iseucjp1): Like _iseucjp, but also
>>> recognizes 0x8e and 0x8f lead bytes.
>>> (_iseucjp2): Rename from _iseucjp.
>>> * libc/stdlib/mbtowc_r.c (__eucjp_mbtowc): Convert JIS-X-0212
>>> triplebyte sequences as well.
>>> * libc/stdlib/wctomb_r.c (__eucjp_wctomb): Convert to JIS-X-0212
>>> triplebyte sequences as well.
Thanks, applied.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat