* tests/test-mbrtoc32.c (main): Use btoc32 instead of btowc.
* modules/mbrtoc32-tests (Depends-on): Add btoc32.
+2023-04-03 Bruno Haible <bruno@clisp.org>
+
+ mbrtoc32 tests: Prefer *c32* functions.
+ * tests/test-mbrtoc32.c (main): Use btoc32 instead of btowc.
+ * modules/mbrtoc32-tests (Depends-on): Add btoc32.
+
2023-04-03 Bruno Haible <bruno@clisp.org>
mbrtoc32 tests: Add comment.
Depends-on:
mbsinit
+btoc32
c32tob
setlocale
localcharset
else
/* On most platforms, the bytes 0x80..0xFF map to U+0080..U+00FF.
But on musl libc, the bytes 0x80..0xFF map to U+DF80..U+DFFF. */
- ASSERT (wc == (btowc (c) == 0xDF00 + c ? btowc (c) : c));
+ ASSERT (wc == (btoc32 (c) == 0xDF00 + c ? btoc32 (c) : c));
ASSERT (mbsinit (&state));
ret = mbrtoc32 (NULL, buf, 1, &state);