when using embind to call the following method test, the resulting string
is broken (only non ascii codepoints)
std::string test()
{
return u8"test ö ä ü ende";
}
std::wstring wtest()
{
return L"test ö ä ü ende";
}
EMSCRIPTEN_BINDINGS(my_module) {
function("test", &test);
function("wtest", &wtest);
}
The version using wstring works with wchar_t size 4 byte but not with size
2 byte.(via Compiler-flag -fshort-wchar)
i did a similar experiment using cwrap/ EXPORT_FUNCTION to call
const char* test()
{
return u8"test ö ä ü ende";
}
which is working fine.
is this a bug?
--
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].
For more options, visit https://groups.google.com/d/optout.