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
The wchar_t overload for String::create() assumes that wchar_t has a size of two bytes, which is only the case on Windows. On other systems it creates an invalid string if a valid wchar_t* is passed in.
String::create(wchar_t* ...) should be fixed to work properly on all systems. It might also be useful to have a alloc_string16 function to accompany alloc_string and alloc_wstring.
The text was updated successfully, but these errors were encountered:
The wchar_t overload for String::create() assumes that wchar_t has a size of two bytes, which is only the case on Windows. On other systems it creates an invalid string if a valid wchar_t* is passed in.
https://github.com/HaxeFoundation/hxcpp/blob/master/src/String.cpp#L465-L519
String::create(wchar_t* ...) should be fixed to work properly on all systems. It might also be useful to have a alloc_string16 function to accompany alloc_string and alloc_wstring.
The text was updated successfully, but these errors were encountered: