opnsense-src/lib/libc/tests
Kyle Evans 25512b1fca libc: locale: fix EUC shift check
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 c4c562eadf3b790fa221e220d6a442f0cb84ca35)
2025-04-25 22:19:49 -05:00
..
c063 Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
db Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
gen getentropy tests: Update after commit 473681a1a506da 2025-03-31 18:52:46 -07:00
hash Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
iconv libc: Purge unneeded cdefs.h 2023-11-26 21:20:09 -07:00
inet Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
locale libc: locale: fix EUC shift check 2025-04-25 22:19:49 -05:00
net Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nss Fix lib/libc/nss/getgr_test with large numbers of groups 2025-01-20 09:54:45 -07:00
regex regex: mixed sets are misidentified as singletons 2024-09-25 15:42:25 -05:00
resolv Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
rpc Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
setjmp Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
ssp libc/tests: Further refine the condition for installing h_raw 2024-07-14 12:16:32 -04:00
stdio libc: fix access mode tests in fmemopen(3) 2024-10-29 15:11:38 -04:00
stdlib libc: tests: add some tests for __cxa_atexit handling 2025-04-16 20:01:46 -05:00
stdtime strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
string lib/libc/tests/string: add memrchr unit tests 2024-01-24 20:39:30 +01:00
sys libc/sys: add errno test 2024-03-02 07:05:05 +02:00
termios Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
time Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
tls pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
tls_dso pkgbase: install all libc test files into the tests package 2024-03-27 09:37:10 +01:00
ttyio Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile strptime: Fix day-of-week calculation. 2024-12-16 10:37:08 +00:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.netbsd-tests Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00