On Wed, 8 Jul 2026, Martin Storsjö 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.
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.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public