Re: [committed] libstdc++: Fix std::format("{:F}", inf) to use uppercase

2023-08-19 Thread Jonathan Wakely via Gcc-patches
On Thu, 17 Aug 2023 at 13:22, Jonathan Wakely via Libstdc++ wrote: > > Tested x86_64-linux. Pushed to trunk. Backport to gcc-13 will follow. Re the backport, I forgot to say that this changes the order/values of the enumerators for _Pres_type. In theory that could cause incompatibilities between

[committed] libstdc++: Fix std::format("{:F}", inf) to use uppercase

2023-08-17 Thread Jonathan Wakely via Gcc-patches
Tested x86_64-linux. Pushed to trunk. Backport to gcc-13 will follow. -- >8 -- std::format was treating {:f} and {:F} identically on the basis that for the fixed 1.234567 format there are no alphabetical characters that need to be in uppercase. But that's wrong for infinities and NaNs, which