https://bugs.winehq.org/show_bug.cgi?id=48174
--- Comment #53 from Rafał Mużyło galtgendo@o2.pl --- OK, sorry for grasping at straws, but couldn't portions of https://learn.microsoft.com/en-us/dotnet/framework/interop/default-marshalli... be read as that upon calling outside dotnet (as seems to be the case here - Encoding.UTF8.GetBytes call precedes a call to a function that quite obviously expects a null-terminated string) strings are *supposed* to be null-terminated ?
That is, it's not the result of GetBytes, that's supposed to be null-terminated, but its copy sent outside dotnet ?