]> Savannah Git Hosting - gnulib.git/commit
vasnwprintf: Fix test failures on musl libc.
authorBruno Haible <bruno@clisp.org>
Mon, 20 Mar 2023 02:26:44 +0000 (03:26 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 20 Mar 2023 02:26:44 +0000 (03:26 +0100)
commit1632b9ada258f5b7175a154e8d632b10158d404c
tree58181d59e46541d293673f6e04eb407bd6f329dd
parentd4e4a068ccfca0fa7009714a491e8c93e1f326fa
vasnwprintf: Fix test failures on musl libc.

* m4/vasnprintf.m4 (gl_PREREQ_VASNWPRINTF): Invoke gl_MUSL_LIBC.
* lib/vasnprintf.c (VASNPRINTF): On musl libc, when WIDE_CHAR_VERSION,
- force pad_ourselves to be 1,
- don't use %n.
Fix zero-padding when the result starts with a prefix "0x" or "0b".
* modules/vasnwprintf (Files): Add musl.m4.
* doc/posix-functions/swprintf.texi: Mention two musl libc bugs.
ChangeLog
doc/posix-functions/swprintf.texi
lib/vasnprintf.c
m4/vasnprintf.m4
modules/vasnwprintf