]> Savannah Git Hosting - gnulib.git/commit
unistdio/*printf: Fix negative width handling for %U, %lU, %llU.
authorBruno Haible <bruno@clisp.org>
Sat, 28 Jan 2023 18:39:23 +0000 (19:39 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 28 Jan 2023 18:39:23 +0000 (19:39 +0100)
commitca1cd9b39787fe8a2329c77bc60d4a7c3ab2334e
treefd3fd36fc6b49c570cedb228961bb0bd23e30a0c
parentbf23b0fb3262feade1b22c60e6e60070f06cefcc
unistdio/*printf: Fix negative width handling for %U, %lU, %llU.

* lib/vasnprintf.c (VASNPRINTF): In the code for %U, %lU, %llU, test for
the FLAG_LEFT bit in the flags variable.
* tests/unistdio/test-u8-printf1.h (test_xfunction): Add tests for width
given as argument for the directives %U, %lU, %llU, %s, %a, %f, %e, %g.
* tests/unistdio/test-u16-printf1.h (test_xfunction): Likewise.
* tests/unistdio/test-u32-printf1.h (test_xfunction): Likewise.
* tests/unistdio/test-ulc-printf1.h (test_xfunction): Likewise.
ChangeLog
lib/vasnprintf.c
tests/unistdio/test-u16-printf1.h
tests/unistdio/test-u32-printf1.h
tests/unistdio/test-u8-printf1.h
tests/unistdio/test-ulc-printf1.h