https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120648
Bug ID: 120648 Summary: %X, %x, %r are not handled correctly for certain localles Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: tkaminsk at gcc dot gnu.org Target Milestone: --- Using '%X' and '%r' with `aa_DJ.UTF-8` locale leads to following error being emitted: ``` terminate called after throwing an instance of 'std::format_error' what(): chrono format error: invalid specifier in chrono-specs Aborted (core dumped) ``` This can be quikly reproduced by modifying `libstdc++-v3/testsuite/std/time/format/pr117214.cc` file to use '%x' or '%r'. Ths is another instance for PR117214 for locales time representation.