]> Savannah Git Hosting - gnulib.git/commit
vasnwprintf-posix: Fix behaviour in the C locale.
authorBruno Haible <bruno@clisp.org>
Sat, 1 Apr 2023 12:51:22 +0000 (14:51 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 1 Apr 2023 12:51:22 +0000 (14:51 +0200)
commitbbf0d3fdf25e8f85c7751ac0ee90a0f50a0f054d
tree34feb43a426755fe6ec95146d7751e151720979b
parent154a389b7cc0654a4fbec0faf4f0ddc3e89a947a
vasnwprintf-posix: Fix behaviour in the C locale.

* lib/vasnprintf.c (VASNPRINTF): If NEED_WPRINTF_DIRECTIVE_C is set,
implement the 'c' directive here.
* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Invoke gl_MBRTOWC_C_LOCALE.
If mbrtowc is buggy in the C locale, define NEED_WPRINTF_DIRECTIVE_C.
* modules/vasnwprintf (Files): Add m4/mbrtowc.m4.
* tests/test-vasnwprintf-posix.c (test_function): Add tests of %s and %c
in the C locale.
* doc/posix-functions/fwprintf.texi: Mention the C locale behaviour bug.
* doc/posix-functions/swprintf.texi: Likewise.
* doc/posix-functions/vfwprintf.texi: Likewise.
* doc/posix-functions/vswprintf.texi: Likewise.
* doc/posix-functions/vwprintf.texi: Likewise.
* doc/posix-functions/wprintf.texi: Likewise.
ChangeLog
doc/posix-functions/fwprintf.texi
doc/posix-functions/swprintf.texi
doc/posix-functions/vfwprintf.texi
doc/posix-functions/vswprintf.texi
doc/posix-functions/vwprintf.texi
doc/posix-functions/wprintf.texi
lib/vasnprintf.c
m4/vasnprintf.m4
modules/vasnwprintf
tests/test-vasnwprintf-posix.c