+2020-01-20 Bruno Haible <bruno@clisp.org>
+
+ mbrtoc32: Add note about FreeBSD 12.
+ * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
+ * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
+ affected.
+
2020-01-20 Bruno Haible <bruno@clisp.org>
unistr/u8-uctomb: Fix warning.
@item
This function does not recognize multibyte sequences that @code{mbrtowc}
recognizes on some platforms:
-Solaris 11.4, mingw, MSVC 14.
+FreeBSD 12, Solaris 11.4, mingw, MSVC 14.
@end itemize
Portability problems not fixed by Gnulib:
-# mbrtoc32.m4 serial 2
+# mbrtoc32.m4 serial 3
dnl Copyright (C) 2014-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl is present.
changequote(,)dnl
case "$host_os" in
- # Guess no on Solaris, native Windows.
- solaris* | mingw*) gl_cv_func_mbrtoc32_sanitycheck="guessing no" ;;
- # Guess yes otherwise.
- *) gl_cv_func_mbrtoc32_sanitycheck="guessing yes" ;;
+ # Guess no on FreeBSD, Solaris, native Windows.
+ freebsd* | solaris* | mingw*)
+ gl_cv_func_mbrtoc32_sanitycheck="guessing no"
+ ;;
+ # Guess yes otherwise.
+ *)
+ gl_cv_func_mbrtoc32_sanitycheck="guessing yes"
+ ;;
esac
changequote([,])dnl
if test $LOCALE_FR != none || test $LOCALE_ZH_CN != none; then
result |= 1;
}
}
- /* This fails on Solaris 11.4:
- mbrtoc32 returns (size_t)-1.
+ /* This fails on FreeBSD 12 and Solaris 11.4:
+ mbrtoc32 returns (size_t)-2 or (size_t)-1.
mbrtowc returns 4 (correct). */
if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
{