Account for grouping in printf width (bug 30068)
commitc980549cc6a1c03c23cc2fe3e7b0fe626a0364b0
authorCarlos O'Donell <carlos@redhat.com>
Thu, 19 Jan 2023 11:50:20 +0000 (19 12:50 +0100)
committerCarlos O'Donell <carlos@redhat.com>
Mon, 6 Feb 2023 15:20:39 +0000 (6 10:20 -0500)
treec6948d04b7c49bb4fe6d5d576764f3bc9f9874fb
parenta1dcc64c9b6e54ce1aabcd10785f43bf2b445ee4
Account for grouping in printf width (bug 30068)

This is a partial fix for mishandling of grouping when formatting
integers.  It properly computes the width in the presence of grouping
characters when the width is larger than the number of significant
digits. The precision related issue is documented in bug 23432.

Co-authored-by: Andreas Schwab <schwab@suse.de>
stdio-common/Makefile
stdio-common/tst-grouping3.c [new file with mode: 0644]
stdio-common/vfprintf-process-arg.c