diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-10 14:33:44 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-08-10 23:31:37 +0100 |
commit | f48a5423964f72e2e1ba0ad6a14d9d1464a78bed (patch) | |
tree | 6233eb1aebd3e703337aee24439bc40d862a5185 /gcc | |
parent | 9cb2a7c8d54b1f6685bc509a07104c458262cb9f (diff) | |
download | gcc-f48a5423964f72e2e1ba0ad6a14d9d1464a78bed.zip gcc-f48a5423964f72e2e1ba0ad6a14d9d1464a78bed.tar.gz gcc-f48a5423964f72e2e1ba0ad6a14d9d1464a78bed.tar.bz2 |
libstdc++: Fix std::format for localized floats [PR110968]
The __formatter_fp::_M_localize function just returns an empty string if
the formatting locale is the C locale, as there is nothing to do. But
the caller was assuming that the returned string contains the localized
string. The caller should use the original string if _M_localize returns
an empty string.
libstdc++-v3/ChangeLog:
PR libstdc++/110968
* include/std/format (__formatter_fp::format): Check return
value of _M_localize.
* testsuite/std/format/functions/format.cc: Check classic
locale.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions