]> Savannah Git Hosting - gnulib.git/commitdiff
mbrtowc: Doc tweak.
authorBruno Haible <bruno@clisp.org>
Wed, 28 Jun 2023 13:01:33 +0000 (15:01 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 28 Jun 2023 13:06:06 +0000 (15:06 +0200)
* 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
doc/posix-functions/mbrtowc.texi
m4/mbrtowc.m4

index a200f5078a4d8d95539cf5de0b328e7106f14b74..e1d2c81d5f79b4798cebd144121e8a2ef051d9af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
index 163a374ea233352d3658465317b8492f01043a88..52471978fc7aea45b2dd01ef04b9265337e6b787 100644 (file)
@@ -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.
index 04e282d24a80a4c370673bf8291fef42bcca0fae..430e9ad83225aa3d59c3c3a6ef0419e7c1e57d19 100644 (file)
@@ -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
        ])