]> Savannah Git Hosting - gnulib.git/commit
mbsrtowcs: Fix behaviour in the C locale.
authorBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 21:12:50 +0000 (23:12 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 30 Mar 2023 21:12:50 +0000 (23:12 +0200)
commit63861afac8004becc3907993cd16b59a5bca5195
tree6247e3ab6379e50c0ab1aa83e8aae1d22c0dd5b6
parent1ab07af585358746e7fcc0176ab1716db31ca902
mbsrtowcs: Fix behaviour in the C locale.

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