diff options
author | Bruno Haible <bruno@clisp.org> | 2023-03-30 23:15:52 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-03-30 23:15:52 +0200 |
commit | 8906a5101bf62b719ddafa376fd4e0805e35617b (patch) | |
tree | 5b48fc73a03cb708b948c700329da2b739ed3c45 /modules/mbsnrtowcs | |
parent | 63861afac8004becc3907993cd16b59a5bca5195 (diff) | |
download | gnulib-8906a5101bf62b719ddafa376fd4e0805e35617b.tar.gz |
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.
Diffstat (limited to 'modules/mbsnrtowcs')
-rw-r--r-- | modules/mbsnrtowcs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mbsnrtowcs b/modules/mbsnrtowcs index 5b66cc2b8f..10260246ea 100644 --- a/modules/mbsnrtowcs +++ b/modules/mbsnrtowcs @@ -7,6 +7,7 @@ lib/mbsnrtowcs-impl.h lib/mbsrtowcs-state.c m4/mbsnrtowcs.m4 m4/mbstate_t.m4 +m4/mbrtowc.m4 Depends-on: wchar |