在 2025-01-13 01:12, Jacek Caban 写道:
Looking at the git log, I found these locale symbols were added to satisfy libc++ with msvcrt-os. Since libc++ is part of the toolchain, it often pulls symbols even when they’re not actually needed. So, I guess libc++ could be a reason to extend this to other CRTs, but I’m not sure. Is it even feasible to use it like that? Wouldn’t it fail due to other missing functionality anyway?
I suspect they are required by `std::locale`, which is required by all C++ i/o streams.If libc++ calls `_create_locale()` then I suspect locales work somehow. In contrast, libstdc++ doesn't call `_create_locale()` so attempts to set non-C locales will always fail [1].
[1] https://github.com/gcc-mirror/gcc/blob/ed8cd42d138fa048e0c0eff1ea28b39f5abe1c29/libstdc%2B%2B-v3/config/locale/generic/c_locale.cc#L242
-- Best regards, LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public