summaryrefslogtreecommitdiff
path: root/modules/mbsnrtowcs
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-30 23:15:52 +0200
committerBruno Haible <bruno@clisp.org>2023-03-30 23:15:52 +0200
commit8906a5101bf62b719ddafa376fd4e0805e35617b (patch)
tree5b48fc73a03cb708b948c700329da2b739ed3c45 /modules/mbsnrtowcs
parent63861afac8004becc3907993cd16b59a5bca5195 (diff)
downloadgnulib-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/mbsnrtowcs1
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