You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to use utility::conversions::latin1_to_utf16 to convert latin1 string to UTF-16. The string contained 'í' character (0xed). After converting it should become 0x00ed but it seems that converting method replaced it with 0xffed.
I think this may be result of casting signed char to utf16char and dest[i] = utf16char(s[i]); in asyncrt_utils.cpp should be replaced by dest[i] = utf16char(static_cast<unsigned char>(s[i])); to fix it. Can someone check if I'm right?
The text was updated successfully, but these errors were encountered:
I've tried to use
utility::conversions::latin1_to_utf16
to convert latin1 string to UTF-16. The string contained 'í' character (0xed). After converting it should become 0x00ed but it seems that converting method replaced it with 0xffed.I think this may be result of casting signed
char
toutf16char
anddest[i] = utf16char(s[i]);
in asyncrt_utils.cpp should be replaced bydest[i] = utf16char(static_cast<unsigned char>(s[i]));
to fix it. Can someone check if I'm right?The text was updated successfully, but these errors were encountered: