LIU Hao wrote:

> I think libc++ requires those functions. OTOH libstdc++ doesn't, and creating 
> a locale other than "C" or
> "POSIX" always throws an exception.

In theory, what libc++ could do is add two checks: one for 
_create_locale/_free_locale and one for _configthreadlocale. If some function 
is not available, libc++ could compile in simple stubbed implementation which 
always fails.

While all _create_locale, _free_locale and _configthreadlocale were added in 
msvcr80.dll, only _{free,create}_locale made it into msvcrt.dll (since Windows 
8). I think adding _configthreadlocale to msvcrt.dll could break old 
applications which did not have notion of thread locales in CRT.

- Kirill Makurin

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

Reply via email to