diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-15 18:30:04 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-15 18:30:26 -0700 |
commit | 6a26d6cbe963a8234538201e9a3b2261243d7e27 (patch) | |
tree | 749c713844a7f245b6212889d9790417b25802f7 /doc | |
parent | 61640bceda024b0112779f4345c728c75c531cc4 (diff) | |
download | gnulib-6a26d6cbe963a8234538201e9a3b2261243d7e27.tar.gz |
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
Diffstat (limited to 'doc')
-rw-r--r-- | doc/posix-functions/mbrlen.texi | 8 | ||||
-rw-r--r-- | doc/posix-functions/mbrtowc.texi | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/doc/posix-functions/mbrlen.texi b/doc/posix-functions/mbrlen.texi index b2c94292d9..7db550e3ad 100644 --- a/doc/posix-functions/mbrlen.texi +++ b/doc/posix-functions/mbrlen.texi @@ -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. diff --git a/doc/posix-functions/mbrtowc.texi b/doc/posix-functions/mbrtowc.texi index 19b91f03f3..7c7f5fd4f4 100644 --- a/doc/posix-functions/mbrtowc.texi +++ b/doc/posix-functions/mbrtowc.texi @@ -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. |