https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95048
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- We do have a codecvt specialization that uses iconv, which would allow us to convert from the native wide encoding to UTF-8, independent of the locale's narrow encoding.