]> Savannah Git Hosting - gnulib.git/commit
*printf-posix: Fix implementation of %b directive.
authorBruno Haible <bruno@clisp.org>
Wed, 22 Mar 2023 20:43:23 +0000 (21:43 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 22 Mar 2023 20:43:23 +0000 (21:43 +0100)
commitf61570c0ef38744c93865172dcbac80e7d4e7b23
tree969f281aa83d72113adc702bcba758e3f155a6c3
parent806d6f857009f0920b74405004a8ea42b4adb23d
*printf-posix: Fix implementation of %b directive.

* lib/vasnprintf.c (VASNPRINTF): In the %b directive implementation, fix
the precision handling, and ignore the '0' flag when a width and a
precision are both present.
* tests/test-snprintf-posix.h (test_function): Add test cases for the %x
directive and more test cases for the %b directive.
* tests/test-sprintf-posix.h (test_function): Likewise.
* tests/test-vasnprintf-posix.c (test_function): Likewise.
* tests/test-vasnwprintf-posix.c (test_function): Likewise.
* tests/test-vasprintf-posix.c (test_function): Likewise.
* modules/vasnwprintf-posix-tests (Files): Add m4/musl.m4.
(configure.ac): Invoke gl_MUSL_LIBC.
ChangeLog
lib/vasnprintf.c
modules/vasnwprintf-posix-tests
tests/test-snprintf-posix.h
tests/test-sprintf-posix.h
tests/test-vasnprintf-posix.c
tests/test-vasnwprintf-posix.c
tests/test-vasprintf-posix.c