[Mono-bugs] [Bug 464128] char* should be in ANSI encoding when passed to C runtime rather than Unicode

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 14 07:14:39 EDT 2010



--- Comment #6 from Kornél Pál <kornelpal at gmail.com> 2010-10-14 11:14:38 UTC ---
One more thing regarding Mono.Posix:

Windows File APIs can either accept ANSI or OEM depending on AreFileApisANSI
(http://msdn.microsoft.com/en-us/library/aa363781.aspx) so Encoding.Default may
not always work.

OEM code page is another system wide setting (bound to ANSI code page I think
but can be modified in registry) that is the legacy DOS code page (like 437).
Console windows usually use OEM encoding but Console API provides GetConsoleCP
and GetConsoleOutputCP (with Set functions as well) so they may very well use
any other code page. Note that console code page is handled correctly by Mono.

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