From 5826332ae5386719b3f34d3c94b4978910a9c0dc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 3 May 2023 17:09:20 +0200 Subject: vasnprintf, vasnwprintf: Make '0' flag handling more ISO C compliant. * lib/vasnprintf.c (VASNPRINTF): When doing the padding ourselves, ignore the '0' flag if a precision is specified and the conversion is one of d, i, o, u, x, X, b, B. * tests/test-vasnprintf-posix.c (test_function): Update expected results accordingly. * tests/test-vasprintf-posix.c (test_function): Likewise. * tests/test-snprintf-posix.h (test_function): Likewise. * tests/test-sprintf-posix.h (test_function): Likewise. * tests/test-vasnwprintf-posix.c (test_function): Likewise. --- ChangeLog | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 6323068ffd..ac0153693e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2023-05-03 Bruno Haible + + vasnprintf, vasnwprintf: Make '0' flag handling more ISO C compliant. + * lib/vasnprintf.c (VASNPRINTF): When doing the padding ourselves, + ignore the '0' flag if a precision is specified and the conversion is + one of d, i, o, u, x, X, b, B. + * tests/test-vasnprintf-posix.c (test_function): Update expected results + accordingly. + * tests/test-vasprintf-posix.c (test_function): Likewise. + * tests/test-snprintf-posix.h (test_function): Likewise. + * tests/test-sprintf-posix.h (test_function): Likewise. + * tests/test-vasnwprintf-posix.c (test_function): Likewise. + 2023-05-02 Paul Eggert mktime: include -- cgit v1.2.1