From f3852a93c7c5bde683066f80f29aa70bc08a4d26 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Apr 2016 09:11:34 -0700 Subject: [PATCH] btowc: document problems in C locale * doc/posix-functions/btowc.texi (btowc): Mention incompatibility with mbrtowc. See: http://bugs.gnu.org/23269#32 --- ChangeLog | 6 ++++++ doc/posix-functions/btowc.texi | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3bca61945d..4bccb2fa79 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2016-04-19 Paul Eggert + + 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 mktime: improve integer overflow checking diff --git a/doc/posix-functions/btowc.texi b/doc/posix-functions/btowc.texi index d09d16f0da..382915aef0 100644 --- a/doc/posix-functions/btowc.texi +++ b/doc/posix-functions/btowc.texi @@ -24,4 +24,8 @@ Portability problems not fixed by Gnulib: @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 -- 2.39.5