https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109162
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #0) > https://wg21.link/P2419R2 localized chrono formatting (also p2372r3) I think this this requires using nl_langinfo_l(CODESET, loc) to find out if the locale uses UTF-8, and then use iconv to convert to UTF-8 if it doesn't. But I'm not sure how we do that for an arbitrary std::locale which doesn't have an associated C locale, and we can't get its locale_t identifier anyway.