2009-09-28 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 28 Sep 2009 04:47:39 +0000 (04:47 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 28 Sep 2009 04:47:39 +0000 (04:47 -0000)
* Console.cs : do not use codepage 28591. It breaks build on
  Japanese Windows.

svn path=/trunk/mcs/; revision=142735

mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/Console.cs

index ae04880332d566f05c9d3d0a669d21fa7e79a5b6..f8bd4373c88b5dc928640907180fc7d4d11bf5d8 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-28  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * Console.cs : do not use codepage 28591. It breaks build on
+         Japanese Windows.
+
 2009-09-27 Gonzalo Paniagua Javier <gonzalo@novell.com>
 
        * TermInfoDriver.cs: avoid segv if the pointer is not properly
index ca6fb9aaed73193206ac43a5eef339868e074768..c9fd7c933622cc22bd0c12ddba2eaf410d6cfa4a 100644 (file)
@@ -86,7 +86,7 @@ namespace System
                                //
 #if NET_2_1
                                // should never happen since Moonlight does not run on windows
-                               inputEncoding = outputEncoding = Encoding.GetEncoding (28591);
+                               inputEncoding = outputEncoding = Encoding.Default;
 #else                  
                                try {
                                        inputEncoding = Encoding.GetEncoding (WindowsConsole.GetInputCodePage ());
@@ -95,7 +95,7 @@ namespace System
                                } catch {
                                        // FIXME: I18N assemblies are not available when compiling mcs
                                        // Use Latin 1 as it is fast and UTF-8 is never used as console code page
-                                       inputEncoding = outputEncoding = Encoding.GetEncoding (28591);
+                                       inputEncoding = outputEncoding = Encoding.Default;
                                }
 #endif
                        } else {