-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal.Console.Write uses unicode encoding for iOS #78974
Conversation
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsFix encoding between
|
src/libraries/System.Private.CoreLib/src/Internal/Console.iOS.cs
Outdated
Show resolved
Hide resolved
{ | ||
fixed (char* ptr = s) | ||
{ | ||
Interop.Sys.Log((byte*)ptr, s.Length * 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't there a LogError
for iOS? Because before this was called, right?
Interop.Sys.LogError(pBytes, bytes.Length); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, yes this should be Interop.Sys.LogError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it was accidentally replaced by last commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
MacCatalyst failure is #78778 |
Fix encoding between
Internal.Console.Write
andSystemNative_Log
for iOS to beUTF16
.