Martin Storsjö <[email protected]> wrote: >> On Wed, 8 Jul 2026, Kirill Makurin wrote: >> >>> If we cannot provide functional emulation for some CRT function, I think it >>> is better to make such application directly import such functions from >>> msvcrt.dll, so instead of malfunctioning at runtime, they would simply not >>> load. >> >> I disagree. >> >> Code attempting to set a locale may either get it, or gets NULL returned at >> runtime if the locale can't be provided. Getting NULL on Windows 7 sounds >> perfectly reasonable to me. > > Also, for what it's worth - as far as I know, most of the locale functions > in msvcrt.dll are mostly not really working anyway, in any version of > Windows.
Hm, that's interesting; let me check it. Another thing worth to mention is that passing `NULL` for `_locale_t` argument is perfectly legal; in this case these functions will simply use active CRT locale. > But they exist and at least allow code to be built and run in the same > way, even if the locale settings don't really change much, sparing the > user code (in this case libc++) a _lot_ of build hassle. - Kirill Makurin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
