https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118003
--- Comment #5 from Martin Storsjö <martin at martin dot st> --- (In reply to Jonathan Wakely from comment #4) > (In reply to Martin Storsjö from comment #2) > > > I also don't want to have to use Windows APIs here. > > > > How does that work within libstdc++ in general, with std::filesystem using > > wchar_t as std::filesystem::path::value_type? Are all paths converted to > > narrow form (into CP_ACP or similar?), for use with platform independent > > filesystem APIs? > > No, all paths are stored as wchar_t. Almost everything is done via wide APIs > like _wreaddir, _wopendir, _wstat64 etc. Ah, ok, thanks - that's good and reassuring. Overall, unfortunately some of those POSIX like APIs provided by the MS C runtimes are pretty bad, so in libc++ I went with mostly using the native win32 APIs directly - at the cost of much more windows specific logic of course.