summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-05-03 17:09:20 +0200
committerBruno Haible <bruno@clisp.org>2023-05-03 17:09:20 +0200
commit5826332ae5386719b3f34d3c94b4978910a9c0dc (patch)
tree8d55c6a27ca1f4c550b0f549eb495f1cd8404e84 /ChangeLog
parent18e6a048c8e85b29090cfed503c0d32a28feb090 (diff)
downloadgnulib-5826332ae5386719b3f34d3c94b4978910a9c0dc.tar.gz
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6323068ffd..ac0153693e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+2023-05-03 Bruno Haible <bruno@clisp.org>
+
+ 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 <eggert@cs.ucla.edu>
mktime: include <intprops.h>