On Wed, 8 Jul 2026, Kirill Makurin wrote:

I agree with this in context of libc++, but what if some other project heavily relies on working `_create_locale`?

In theory I could understand the argument, somehwat, but this is exceedingly rare in real world code, as far as I've seen.

I think that the perfect solution would be for libc++ to check whether `_create_locale` is really available during configuration. However, you pointed out that getting this done in libc++ would be troublesome.

In another reply I suggested to expose `_create_locale` etc. for msvcrt.dll with _WIN32_WINNT defined to 0x0601 (Vista) or higher; this will expose them when other `_locale_t` functions are also exposed (they are available in msvcrt.dll since Vista).

Exposing it only from Vista, which shouldn't require any changes to the libc++ build, sounds tolerable to me.

// Martin




_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to