[corlib] Xamarin.Mac to continue default to the OS default codepage
authorSebastien Pouliot <sebastien@xamarin.com>
Mon, 1 Jun 2015 19:20:18 +0000 (15:20 -0400)
committerSebastien Pouliot <sebastien@xamarin.com>
Mon, 1 Jun 2015 19:20:43 +0000 (15:20 -0400)
XM 2.0 was the first version to ship the mobile (w/unified) and it used
the OS default codepage.

The previous, system mono, profile was already using the OS default
codepage so it make sense for XM to be consistent across profiles (
including the 4.5 subset)

mcs/class/corlib/System.Text/EncodingHelper.cs

index 8e797d8cdc5eb74dc970940a6cc5ff1aabafc196..c30ceff5b92d1f16becd68bed83a26d3befeab99 100644 (file)
@@ -71,7 +71,7 @@ internal static partial class EncodingHelper
        [MethodImpl (MethodImplOptions.InternalCall)]
        extern internal static string InternalCodePage (ref int code_page);
 
-#if !(MONOTOUCH || XAMMAC)
+#if !MONOTOUCH
        internal static Encoding GetDefaultEncoding ()
        {
                Encoding enc = null;