[Mono-bugs] [Bug 56965][Maj] Changed - P/Invoke is marshalling string arrays as UTF-8 not Unicode

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 18 Apr 2004 09:52:37 -0400 (EDT)


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 vargaz@freemail.hu.

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

--- shadow/56965	2004-04-16 15:02:03.000000000 -0400
+++ shadow/56965.tmp.24311	2004-04-18 09:52:37.000000000 -0400
@@ -92,6 +92,15 @@
 
 The bytes in my unmanaged code look like: t,0,i,0,t,0,l,0,e,0,0,0
 I get t,0 in my managed code.
 
 Is it thinking the strings are UTF-8 not Unicode?
 
+
+------- Additional Comments From vargaz@freemail.hu  2004-04-18 09:52 -------
+The LPArray problem is fixed in CVS. Note that you need to recompile
+your code using a new runtime, because the old runtime couldn't properly
+encode the ArraySubType=UnmanagedType.LPStr stuff.
+
+About the delegate problem: could you attach a test case ? Or at least
+the signatures of the managed and the unmanaged functions ?
+