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 see "length" "-1" in the code, is this maybe already fixed (in a different way)? Was this forgotten or want to use size? For performance reasons? Length would have to scan the whole string (in case of non-BMP).
Yes, looked like @nolta fixed it in 0cc11e2 without cross-referencing this issue.
The only downside to using length(s.data)-1 is that it depends on the internal representation of UTF16String, so if the NUL-termination is ever removed this will have to change again.
In preparation for JuliaLang/julia#7016 or similar changes, you should replace
UTF16String(data)
byutf16(data)
andlength(s.data)
bysizeof(s) >> 1
.The text was updated successfully, but these errors were encountered: