From 79ad2a8d02a7888d845ea4eda716f884ad53093c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 28 Jun 2023 15:01:33 +0200 Subject: [PATCH] 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. --- ChangeLog | 9 +++++++++ doc/posix-functions/mbrtowc.texi | 4 ++-- m4/mbrtowc.m4 | 8 +++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index a200f5078a..e1d2c81d5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2023-06-28 Bruno Haible + + 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 mbrtowc, mbrtoc32: Simplify autoconf macros. diff --git a/doc/posix-functions/mbrtowc.texi b/doc/posix-functions/mbrtowc.texi index 163a374ea2..52471978fc 100644 --- a/doc/posix-functions/mbrtowc.texi +++ b/doc/posix-functions/mbrtowc.texi @@ -18,7 +18,7 @@ glibc 2.35. @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: @@ -35,7 +35,7 @@ MSVC 14. 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. diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 index 04e282d24a..430e9ad832 100644 --- a/m4/mbrtowc.m4 +++ b/m4/mbrtowc.m4 @@ -1,4 +1,4 @@ -# 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 @@ -697,8 +697,10 @@ AC_DEFUN([gl_MBRTOWC_EMPTY_INPUT], [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 ]) -- 2.39.5