https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117085
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:f1436fde43215659554418220aa45830a5e7ae61 commit r14-10792-gf1436fde43215659554418220aa45830a5e7ae61 Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Oct 11 09:40:38 2024 +0100 libstdc++: Fix localized %c formatting for <chrono> [PR117085] When formatting a time point with %c we call std::vformat_to using the formatting locale's D_T_FMT string, but we weren't adding the L option to the format string. This meant we always interpreted D_T_FMT in the C locale, instead of using the formatting locale as obviously intended when %c is used. libstdc++-v3/ChangeLog: PR libstdc++/117085 * include/bits/chrono_io.h (__formatter_chrono::_M_c): Add L option to format string. * testsuite/std/time/format.cc: Move to... * testsuite/std/time/format/format.cc: ...here. * testsuite/std/time/format/pr117085.cc: New test. (cherry picked from commit 4ad697bb7f1aad252e1398c6f13eed3fa6d0ca5b)