libstdc++: Do not apply localized formatting to NaN and inf [PR114863]
commita0bc71e480132a528a4869c1cd7863f709768c53
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 Apr 2024 10:42:26 +0000 (26 11:42 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 26 Apr 2024 14:57:38 +0000 (26 15:57 +0100)
tree1faa6286f456cef50af8497bb18999adc06b310e
parent7d5479a2ecf6309281de10b747a7423169a2ff95
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.
libstdc++-v3/include/std/format
libstdc++-v3/testsuite/std/format/functions/format.cc