I'm trying to use Emscripten 1.39.3, and hit an exception caused 
by std::locale("") . The following is the error message.
"collate_byname<char>::collate_byname failed to construct for "

According to http://www.cplusplus.com/reference/locale/locale/locale/, 
empty string is the environment's default locale. I found that if I create 
the std::locale with its default constructor, I won't get any exception. I 
also tried to create locale with empty string natively with MinGW g++, and 
I also got an exception "locale::facet::_S_create_c_locale name not valid".

Not sure if this is an Emscripten issue or something else.

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/5b73a6af-03a0-4154-96f0-b6b89c7c0179%40googlegroups.com.

Reply via email to