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
@jkoritzinsky Is there a reasonable alternative, though? To have platform-independent bindings to an API using wchar_t, it would be usefull to have a CharSet.WCharT that is UTF16 on Windows and UTF32 essentially everywhere else. Apart from .NET tooling I have never seen an API that switches between UTF8 and UTF16 like CharSet.Auto does.
ghost
locked as resolved and limited conversation to collaborators
Dec 12, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
General
Tested on .NET Core 3.0.100-preview9-014004 on Arch Linux.
The following code should print out
4
on this system, but instead outputs2
.Printing
sizeof(wchar_t)
from a C program gives4
.Discovered when trying to interop with a C library that has a struct with
wchar_t[5]
inside.The text was updated successfully, but these errors were encountered: