Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by [EMAIL PROTECTED]

http://bugzilla.ximian.com/show_bug.cgi?id=79117

--- shadow/79117        2006-08-21 13:53:14.000000000 -0400
+++ shadow/79117.tmp.20538      2006-08-21 14:09:23.000000000 -0400
@@ -87,6 +87,25 @@
 
 I can see how "FormatMessageA" is looked up. That's wrong.
 It should be "FormatMessageW", because I'm running XP.
 
 Marshal.SystemDefaultCharSize is 2, which is correct.
 
+
+------- Additional Comments From [EMAIL PROTECTED]  2006-08-21 14:09 -------
+Sorry, I've misunterstood the dump output. It was LoadLibraryA,
+not FormatMessageA. FormatMessageW is looked up correctly :-)
+
+
+The problem is the following icall:
+
+       {"PtrToStringAuto(intptr)",
+ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi},
+       {"PtrToStringAuto(intptr,int)",
+ves_icall_System_Runtime_InteropServices_Marshal_PtrToStringAnsi_len},
+
+As you see, "Auto" gets mapped to "Ansi".
+
+Under Windows this is wrong. It should be mapped
+to a function which depending on Marshal.SystemDefaultCharSize
+it calls either *Ansi or *Unicode.
+
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to