]> Savannah Git Hosting - gnulib.git/commit
vasnwprintf-posix: Work around another musl libc bug.
authorBruno Haible <bruno@clisp.org>
Mon, 12 Jun 2023 16:39:49 +0000 (18:39 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 12 Jun 2023 17:13:34 +0000 (19:13 +0200)
commit94a7cdb7496bfd7d44ac26938ecd219c75ce6f34
tree2ce08122b6082a7afc897e8a44dc2b57aea8021b
parent284bd54ebc28cd3b61596014adb3440ad2c65c2e
vasnwprintf-posix: Work around another musl libc bug.

* m4/printf.m4 (gl_SWPRINTF_DIRECTIVE_LC): New macro.
* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Invoke it, and set
NEED_WPRINTF_DIRECTIVE_LC if the %lc test failed.
* lib/vasnprintf.c (VASNPRINTF): If NEED_WPRINTF_DIRECTIVE_LC is set, do
the processing for %lc and %ls ourselves.
(local_wcslen): Update condition.
* doc/posix-functions/swprintf.texi: Mention the %lc problem.
ChangeLog
doc/posix-functions/swprintf.texi
lib/vasnprintf.c
m4/printf.m4
m4/vasnprintf.m4