[Mono-bugs] [Bug 654054] Marshal.SizeOf(typeof(char)) returns 2, should return 1.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Nov 30 22:04:43 EST 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=654054#c2


Rodrigo Kumpera <rkumpera at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |CLOSED
                 CC|                            |rkumpera at novell.com
         Resolution|                            |INVALID

--- Comment #2 from Rodrigo Kumpera <rkumpera at novell.com> 2010-12-01 03:04:43 UTC ---
This is the expected behavior as char marshaling on linux defaults to UCS2 but
Ansi on windows.

If you need a specific encoding, specify with [MarshalAs] on fields and
[DllImport(Charset=...)] on methods.

-- 
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