summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-03 14:24:39 +0200
committerBruno Haible <bruno@clisp.org>2023-04-03 14:24:39 +0200
commit13679eb960abb41db5557bf364d7b31bc27d6f55 (patch)
tree66370454df26f51c7bcc351ce20785d160ab0d81 /tests
parent09a9ccc95ddd3e4ffbf386cca440b944c91d3412 (diff)
downloadgnulib-13679eb960abb41db5557bf364d7b31bc27d6f55.tar.gz
mbrtoc32 tests: Prefer *c32* functions.
* tests/test-mbrtoc32.c (main): Use btoc32 instead of btowc. * modules/mbrtoc32-tests (Depends-on): Add btoc32.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-mbrtoc32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-mbrtoc32.c b/tests/test-mbrtoc32.c
index a40309004e..ecde031f36 100644
--- a/tests/test-mbrtoc32.c
+++ b/tests/test-mbrtoc32.c
@@ -397,7 +397,7 @@ main (int argc, char *argv[])
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);