* lib/mbrtowc.c (rpl_mbrtowc): Fix botched condition for the n==0 case.
+2026-06-02 Bruno Haible <bruno@clisp.org>
+
+ mbrtowc: Fix handling of n==0 on CentOS 7, MSVC (regr. 2026-05-25).
+ * lib/mbrtowc.c (rpl_mbrtowc): Fix botched condition for the n==0 case.
+
2026-06-02 Bruno Haible <bruno@clisp.org>
mbrtowc, mbrlen: Work around a NetBSD bug in UTF-8 locales.
}
# endif
-# if (MBRTOC32_EMPTY_INPUT_BUG || MBRTOWC_INVALID_UTF8_BUG || _GL_SMALL_WCHAR_T \
+# if (MBRTOWC_EMPTY_INPUT_BUG || MBRTOWC_INVALID_UTF8_BUG \
|| (GNULIB_WCHAR_SINGLE_LOCALE && __GLIBC__ >= 2 && !__UCLIBC__))
if (n == 0)
return (size_t) -2;