We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 280c2fb commit bfa82afCopy full SHA for bfa82af
src/libraries/System.Private.CoreLib/src/Internal/Console.iOS.cs
@@ -10,22 +10,20 @@ public static partial class Console
10
{
11
public static unsafe void Write(string s)
12
13
- byte[] bytes = Encoding.Unicode.GetBytes(s);
14
- fixed (byte* pBytes = bytes)
+ fixed (char* ptr = s)
15
16
- Interop.Sys.Log(pBytes, bytes.Length);
+ Interop.Sys.Log((byte*)ptr, s.Length * 2);
17
}
18
19
public static partial class Error
20
21
22
23
24
25
26
- Interop.Sys.LogError(pBytes, bytes.Length);
27
28
29
30
31
-}
+}
0 commit comments