diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-06-04 18:22:28 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-06-10 15:06:55 +0100 |
commit | 974d59aec69b35bd4f7f8464a3bcfc55e849ed1f (patch) | |
tree | 5798a99a593cc6a8b5475246709c31fdf6c8bea7 /gcc | |
parent | 615a92a1e6a90bcb012deb216cd141266b0954a0 (diff) | |
download | gcc-974d59aec69b35bd4f7f8464a3bcfc55e849ed1f.zip gcc-974d59aec69b35bd4f7f8464a3bcfc55e849ed1f.tar.gz gcc-974d59aec69b35bd4f7f8464a3bcfc55e849ed1f.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>
(cherry picked from commit 2c3559839d70df6311da18fd93237050405580c3)
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions