[Mono-bugs] [Bug 422564] Strings Returned Via P/ Invoke Returned Blank When Contain Certain ANSI Characters
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Sep 8 21:56:24 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=422564
User jpryor at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=422564#c7
Jonathan Pryor <jpryor at novell.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jpryor at novell.com
--- Comment #7 from Jonathan Pryor <jpryor at novell.com> 2008-09-08 19:56:24 MDT ---
The "generic C# way" is do one of:
1. Have your native C lib produce UTF-8 encoded strings on Unix and "normal"
ANSI strings on Win32.
2. Alter your C library to use UTF-16 strings and alter your C# wrapper to use
[MarshalAs(UnmanagedType.LPWStr)].
ANSI strings are largely broken anyway, as they can only ever contain a subset
of all strings that the user can produce, so (2) is the saner solution...
--
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.
More information about the mono-bugs
mailing list