mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
wchar_t is unsigned on ARM platforms, and signed pretty much everywhere
else. On signed platforms, `nm` ends up with bogus upper bits set if we
did in-fact have a valid CS2 or CS3 (MSB set). Mask just the low byte
to avoid sign bit garbage.
Bare basic test of converting a CS2 widechar in eucCN, which would
previously kick back an EILSEQ.
Reviewed by: bapt, rew
Sponsored by: Klara, Inc.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| btowc_test.c | ||
| c16rtomb_test.c | ||
| iswctype_test.c | ||
| Makefile | ||
| Makefile.depend | ||
| mblen_test.c | ||
| mbrlen_test.c | ||
| mbrtoc16_test.c | ||
| mbrtowc_test.c | ||
| mbsnrtowcs_test.c | ||
| mbsrtowcs_test.c | ||
| mbstowcs_test.c | ||
| mbtowc_test.c | ||
| newlocale_test.c | ||
| towctrans_test.c | ||
| wcrtomb_test.c | ||
| wcsnrtombs_test.c | ||
| wcsrtombs_test.c | ||
| wcstombs_test.c | ||
| wctomb_test.c | ||