https://bugzilla.novell.com/show_bug.cgi?id=422564

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=422564#c3


Robert Jordan <[EMAIL PROTECTED]> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |[EMAIL 
PROTECTED]




--- Comment #3 from Robert Jordan <[EMAIL PROTECTED]>  2008-09-08 10:30:28 MDT 
---
Unlike MS.NET, Mono's p/invoke layer always uses UTF8 encoding for CharSet.Ansi
and UnmanagedType.LPStr.

If your "Function (int, int, char *, int length)" is returning non UTF8
strings, you have to marshal them manually or resort to
Mono.Unix.UnixMarshal.PtrToString*:

http://www.go-mono.com/docs/[EMAIL PROTECTED]

See also the docs of Mono.Unix.UnixEncoding to understand the dilemma of file
names under Unix. Just in case "Function" is returning file names...


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to