]> Savannah Git Hosting - gnulib.git/commitdiff
doc: document mbrtowc and mbrlen problem with empty input
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 May 2014 01:30:04 +0000 (18:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 May 2014 01:30:26 +0000 (18:30 -0700)
* doc/posix-functions/mbrlen.texi (mbrlen):
* doc/posix-functions/mbrtowc.texi (mbrtowc):
Document portability problem when the input string is empty.  See:
https://sourceware.org/bugzilla/show_bug.cgi?id=16950

ChangeLog
doc/posix-functions/mbrlen.texi
doc/posix-functions/mbrtowc.texi

index 00126d53132f32df1be0fcefc87621da137b5af5..2e593621d6619f1042db38078379e8d8cbfb7cfd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
 
+       doc: document mbrtowc and mbrlen problem with empty input
+       * doc/posix-functions/mbrlen.texi (mbrlen):
+       * doc/posix-functions/mbrtowc.texi (mbrtowc):
+       Document portability problem when the input string is empty.  See:
+       https://sourceware.org/bugzilla/show_bug.cgi?id=16950
+
        doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
        Problem reported by Eli Zaretskii in:
        http://lists.gnu.org/archive/html/bug-grep/2014-05/msg00118.html
index b2c94292d907bd9a3926d601a5587cf49438338f..7db550e3ad62aaaa94392b7173e7459d5a3f3153 100644 (file)
@@ -12,6 +12,14 @@ Portability problems fixed by Gnulib:
 This function is missing on some platforms:
 Minix 3.1.8, HP-UX 11.00, IRIX 6.5, Solaris 2.6, mingw, Interix 3.5.
 @item
+This function returns 0 instead of @code{(size_t) -2} when the input
+is empty:
+glibc 2.19.
+@item
+This function returns @code{(size_t) -1} instead of @code{(size_t) -2}
+when the input is empty:
+AIX 5.1.
+@item
 This function does not put the state into non-initial state when parsing an
 incomplete multibyte character on some platforms:
 AIX 5.1, OSF/1 5.1.
index 19b91f03f38de2b150ce52121613f0fb0675b37b..7c7f5fd4f4ad20e22e029c6954461932848bfe58 100644 (file)
@@ -12,6 +12,14 @@ Portability problems fixed by Gnulib:
 This function is missing on some platforms:
 Minix 3.1.8, HP-UX 11.00, IRIX 6.5, Solaris 2.6, mingw, Interix 3.5.
 @item
+This function returns 0 instead of @code{(size_t) -2} when the input
+is empty:
+glibc 2.19.
+@item
+This function returns @code{(size_t) -1} instead of @code{(size_t) -2}
+when the input is empty:
+AIX 5.1.
+@item
 This function does not put the state into non-initial state when parsing an
 incomplete multibyte character on some platforms:
 AIX 5.1, OSF/1 5.1.