https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117214
--- Comment #13 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Jonathan Wakely <[email protected]>: https://gcc.gnu.org/g:bf0465b3e2c3142957444f46b9a3cd3719c8299f commit r15-11263-gbf0465b3e2c3142957444f46b9a3cd3719c8299f Author: XU Kailiang <[email protected]> Date: Wed Jul 2 15:10:29 2025 +0800 libstdc++: Format chrono %a/%A/%b/%B/%p using locale's time_put [PR117214] C++ formatting locale could have a custom time_put that performs differently from the C locale, so do not use __timepunct directly. This patch for gcc-15 was originally submitted for trunk, but then got rebased and committed as r16-2063-g8ad5968a8dcb47. For the gcc-15 backport we need to go back to the original v1 patch. libstdc++-v3/ChangeLog: PR libstdc++/117214 * include/bits/chrono_io.h (__formatter_chrono::_M_a_A) (__formatter_chrono::_M_b_B, __formatter_chrono::_M_p): Use _M_locale_fmt to format %a/%A/%b/%B/%p. * testsuite/std/time/format/pr117214_custom_timeput.cc: New test. Signed-off-by: XU Kailiang <[email protected]> Reviewed-by: Jonathan Wakely <[email protected]>
