Skip to content

Commit

Permalink
backport r142735.
Browse files Browse the repository at this point in the history
svn path=/branches/mono-2-6/mcs/; revision=142736
  • Loading branch information
atsushieno committed Sep 28, 2009
1 parent cd1791a commit 89a11d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mcs/class/corlib/System/ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions mcs/class/corlib/System/Console.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static Console ()
//
#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 ());
Expand All @@ -95,7 +95,7 @@ static Console ()
} 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 {
Expand Down

0 comments on commit 89a11d5

Please sign in to comment.