* tests/test-mbrtowc.c (main): Fix expected value of wc.
+2019-07-28 Bruno Haible <bruno@clisp.org>
+
+ mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
+ * tests/test-mbrtowc.c (main): Fix expected value of wc.
+
2019-07-24 Bruno Haible <bruno@clisp.org>
pthread-h: Fix definitions of types and macros on mingw.
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) == WEOF ? c : btowc (c)));
+ ASSERT (wc == (btowc (c) == 0xDF00 + c ? btowc (c) : c));
ASSERT (mbsinit (&state));
ret = mbrtowc (NULL, buf, 1, &state);
ASSERT (ret == 1);