+2023-06-28 Bruno Haible <bruno@clisp.org>
+
+ mbrtowc: Doc tweak.
+ * doc/posix-functions/mbrtowc.texi: Mention that MSVC has the empty
+ input bug and the return value bug. Mention that Android has the empty
+ input bug.
+ * m4/mbrtowc.m4 (gl_MBRTOC32_EMPTY_INPUT): Update cross-compilation
+ guess.
+
2023-06-28 Bruno Haible <bruno@clisp.org>
mbrtowc, mbrtoc32: Simplify autoconf macros.
@item
This function returns 0 instead of @code{(size_t) -2} when the input
is empty:
-glibc 2.19.
+glibc 2.19, MSVC 14, Android 11.
@item
This function returns @code{(size_t) -1} instead of @code{(size_t) -2}
when the input is empty:
This function returns the total number of bytes that make up the multibyte
character, not the number of bytes that were needed to complete the multibyte
character, on some platforms:
-HP-UX 11.11, Solaris 11 2010-11, mingw, possibly MSVC 14.
+HP-UX 11.11, Solaris 11 2010-11, mingw, MSVC 14.
@item
This function may not return 0 when parsing the NUL character on some platforms:
Solaris 9.
-# mbrtowc.m4 serial 42 -*- coding: utf-8 -*-
+# mbrtowc.m4 serial 43 -*- coding: utf-8 -*-
dnl Copyright (C) 2001-2002, 2004-2005, 2008-2023 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
[case "$host_os" in
# Guess no on AIX and glibc systems.
aix* | *-gnu* | gnu*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
- # Guess yes on native Windows.
- mingw*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
+ # Guess no on Android.
+ linux*-android*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
+ # Guess no on native Windows.
+ mingw*) gl_cv_func_mbrtowc_empty_input="guessing no" ;;
*) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
esac
])