changeset 18299:1c39056c6c9f

btowc: document problems in C locale * doc/posix-functions/btowc.texi (btowc): Mention incompatibility with mbrtowc. See: http://bugs.gnu.org/23269#32
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 19 Apr 2016 09:11:34 -0700
parents e2e492c211bb
children df80f523aa64
files ChangeLog doc/posix-functions/btowc.texi
diffstat 2 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Apr 15 07:41:08 2016 -0700
+++ b/ChangeLog	Tue Apr 19 09:11:34 2016 -0700
@@ -1,3 +1,9 @@
+2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+	btowc: document problems in C locale
+	* doc/posix-functions/btowc.texi (btowc): Mention incompatibility
+	with mbrtowc.  See: http://bugs.gnu.org/23269#32
+
 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
 
 	mktime: improve integer overflow checking
--- a/doc/posix-functions/btowc.texi	Fri Apr 15 07:41:08 2016 -0700
+++ b/doc/posix-functions/btowc.texi	Tue Apr 19 09:11:34 2016 -0700
@@ -24,4 +24,8 @@
 @item
 On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot
 accommodate all Unicode characters.
+@item
+In the C or POSIX locales, this function is not consistent with
+Gnulib's @code{mbrtowc} and can return @code{WEOF}:
+glibc 2.23, MirOS BSD #10.
 @end itemize