https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120548
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:c92bc1e435e48e85fecf08dafe9d62a30a46a773 commit r14-11838-gc92bc1e435e48e85fecf08dafe9d62a30a46a773 Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Jun 4 18:22:28 2025 +0100 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 <tkami...@redhat.com> (cherry picked from commit 2c3559839d70df6311da18fd93237050405580c3)