]> Savannah Git Hosting - gnulib.git/commit
mbsnrtowcs: Fix behaviour in the C locale.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 21:15:52 +0000 (23:15 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 21:15:52 +0000 (23:15 +0200)
commit8906a5101bf62b719ddafa376fd4e0805e35617b
tree5b48fc73a03cb708b948c700329da2b739ed3c45
parent63861afac8004becc3907993cd16b59a5bca5195
mbsnrtowcs: Fix behaviour in the C locale.

* m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Invoke gl_MBRTOWC_C_LOCALE. If
mbrtowc is buggy in the C locale, override also mbsnrtowcs.
* modules/mbsnrtowcs (Files): Add m4/mbrtowc.m4.
* tests/test-mbsnrtowcs.c (main): Add a test of the C locale, based on
tests/test-mbsrtowcs.c.
* tests/test-mbsnrtowcs5.sh: New file, based on tests/test-mbrtowc5.sh.
* modules/mbsnrtowcs-tests (Files): Add it.
(Makefile.am): Test it.
* doc/posix-functions/mbsnrtowcs.texi: Mention the C locale behaviour
bug.
ChangeLog
doc/posix-functions/mbsnrtowcs.texi
m4/mbsnrtowcs.m4
modules/mbsnrtowcs
modules/mbsnrtowcs-tests
tests/test-mbsnrtowcs.c
tests/test-mbsnrtowcs5.sh [new file with mode: 0755]