diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-03 14:24:39 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-03 14:24:39 +0200 |
commit | 13679eb960abb41db5557bf364d7b31bc27d6f55 (patch) | |
tree | 66370454df26f51c7bcc351ce20785d160ab0d81 /tests | |
parent | 09a9ccc95ddd3e4ffbf386cca440b944c91d3412 (diff) | |
download | gnulib-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.c | 2 |
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); |