[Mono-bugs] [Bug 79117][Nor] Changed - [PATCH] Marshal.StringToHGlobalAuto & PtrToStringAuto not working as expected

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Aug 23 11:37:23 EDT 2006

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 robertj at gmx.net.


--- shadow/79117	2006-08-23 11:26:21.000000000 -0400
+++ shadow/79117.tmp.19772	2006-08-23 11:37:22.000000000 -0400
@@ -226,6 +226,18 @@
 You're right about the patch of course, sorry about ...
 About your patch: we could still remove the ****Auto icalls, and 
 modify the Marshal class to invoke ***Ansi or ***Unicode from ***Auto 
 managed methods depending on SystemDefaultCharSize, but that just 
 depends on the personal preference of the maintainer.
+------- Additional Comments From robertj at gmx.net  2006-08-23 11:37 -------
+About the mangling:
+CharSet.Ansi,    ExactSpelling = true -> FormatMessageA
+CharSet.Unicode, ExactSpelling = true -> FormatMessageW
+CharSet.Auto,    ExactSpelling = true -> FormatMessageW
+The latter doesn't make much sense, but it works, though.
+I don't see a bug here.

More information about the mono-bugs mailing list