https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109162
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |113318 --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #4) > I remain confused about how to implement this. We could use > newlocale(loc.name()) to try to open a C locale from the C++ locale's name, > and if that works use nl_langinfo_l to get the locale's encoding, P1185 (PR 113318) provides a standard API for doing that. So it probably makes sense to implement that part of P1185 before doing P2419. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113318 [Bug 113318] [C++23] Implement P1185R12, Naming text encodings to demystify them