diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-06-04 18:22:28 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-06-05 14:43:48 +0100 |
commit | 2c3559839d70df6311da18fd93237050405580c3 (patch) | |
tree | c543b8d76090868a4541f80ee1dfca31ee942745 /gcc | |
parent | 9399a3b5f512af6dbbe05be076e726efc91413f1 (diff) | |
download | gcc-2c3559839d70df6311da18fd93237050405580c3.zip gcc-2c3559839d70df6311da18fd93237050405580c3.tar.gz gcc-2c3559839d70df6311da18fd93237050405580c3.tar.bz2 |
libstdc++: Fix std::format thousands separators when sign present [PR120548]
The leading sign character should be skipped when deciding whether to
insert thousands separators into a floating-point format.
libstdc++-v3/ChangeLog:
PR libstdc++/120548
* include/std/format (__formatter_fp::_M_localize): Do not
include a leading sign character in the string to be grouped.
* testsuite/std/format/functions/format.cc: Check grouping when
sign is present in the output.
Reviewed-by: Tomasz KamiĆski <tkaminsk@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions