]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Do not apply localized formatting to NaN and inf [PR114863]
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Apr 2024 10:42:26 +0000 (11:42 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 30 Apr 2024 20:20:33 +0000 (21:20 +0100)
commit61c38a231d2df60cb6e914b3ecc73a0229c17ff6
tree18824321946d47e67752a674cbc62f4f27bc7a3d
parent13bf9232fc1ec2cb7be85b628a6f2d5ed15510d9
libstdc++: Do not apply localized formatting to NaN and inf [PR114863]

We don't want to add grouping to strings like "-inf", and there is no
radix character to replace either.

libstdc++-v3/ChangeLog:

PR libstdc++/114863
* include/std/format (__formatter_fp::format): Only use
_M_localized for finite values.
* testsuite/std/format/functions/format.cc: Check localized
formatting of NaN and initiny.

(cherry picked from commit 7501c0a397fcf609a1ff5f083746b6330b89ee11)
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/functions/format.cc