Reported by Bernhard Voelker.
* tests/test-mbrtowc.c (main): Fix expected value of wc.
+2018-02-24 Bruno Haible <bruno@clisp.org>
+
+ mbrtowc tests: Fix regression on glibc.
+ Reported by Bernhard Voelker.
+ * tests/test-mbrtowc.c (main): Fix expected value of wc.
+
2018-02-24 Bruno Haible <bruno@clisp.org>
striconveha, uniconv/*: Avoid test failures on musl libc.
locale.
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));
+ ASSERT (wc == (btowc (c) == WEOF ? c : btowc (c)));
ASSERT (mbsinit (&state));
ret = mbrtowc (NULL, buf, 1, &state);
ASSERT (ret == 1);