aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorXU Kailiang <xu2k3l4@outlook.com>2025-03-01 13:23:21 +0800
committerJonathan Wakely <redi@gcc.gnu.org>2025-03-21 10:28:15 +0000
commitc24a1d58bc02daabafd5c94fca0984b70db811c8 (patch)
treeb7e30df22cc4445af8b0f5a41ab8854138b148e5 /gcc
parent3c7f2fd8c4b330029c935f2785a5da9395355d7d (diff)
downloadgcc-c24a1d58bc02daabafd5c94fca0984b70db811c8.zip
gcc-c24a1d58bc02daabafd5c94fca0984b70db811c8.tar.gz
gcc-c24a1d58bc02daabafd5c94fca0984b70db811c8.tar.bz2
libstdc++: Fix localized D_T_FMT %c formatting for <chrono> [PR117214]
Formatting a time point with %c was implemented by calling std::vprint_to with format string constructed from locale's D_T_FMT string, but in some locales this string contains strftime specifiers which are not valid for chrono-specs, e.g. %l. So just use _M_locale_fmt to avoid this problem. libstdc++-v3/ChangeLog: PR libstdc++/117214 * include/bits/chrono_io.h (__formatter_chrono::_M_c): Use _M_locale_fmt to format %c time point. * testsuite/std/time/format/pr117214.cc: New test. Signed-off-by: XU Kailiang <xu2k3l4@outlook.com> Co-authored-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions