]> Savannah Git Hosting - gnulib.git/commit
mbrtowc: port better to narrow-wchar_t platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Dec 2019 08:50:12 +0000 (00:50 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Dec 2019 08:50:49 +0000 (00:50 -0800)
commit6bc5c0e01ba63d0fd8557d26fb468a2e61f129da
tree8723f75a66a8859e77602aca62bb8a9ed097a142
parentbe584c56eb1311606e5ea1a36363b97bddb6eed3
mbrtowc: port better to narrow-wchar_t platforms

* lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
wchar_t is too narrow to represent all the Unicode characters,
consider a byte sequence for an out-of-wchar_t-range character to
be an encoding error.  This fixes grep’s surrogate-pair test
failure on AIX 7.2.
ChangeLog
lib/mbrtowc.c