]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: mbrtowi: define replacement for mbrtowc, returning UTF-32 value
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 14 Feb 2023 11:20:20 +0000 (12:20 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 14 Feb 2023 11:20:20 +0000 (12:20 +0100)
commit60c25da90d015f27c5697c6db7ab0557585d09aa
tree4e07d2789ee4c7424951e382a40620fb8ee082aa
parent210eca1b31090d4c93c22a3152f1faa795dfd775
Cygwin: mbrtowi: define replacement for mbrtowc, returning UTF-32 value

Given how UTF-16 isn't capable to hold all Unicode chars in a single
wchar_t, we need a function returning a wint_t value representing
a UTF-32 value for comparison functions.  Fortunately the important
wide character functions like towupper/towlower, isw<class>, iswctype,
etc, already take wint_t values and newlib handles them as UTF-32.

If only we had switched wchar_t to 32 bit way back when... sigh.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/local_includes/wchar.h
winsup/cygwin/strfuncs.cc
This page took 0.030832 seconds and 5 git commands to generate.