https://bugzilla.novell.com/show_bug.cgi?id=678357
https://bugzilla.novell.com/show_bug.cgi?id=678357#c0 Summary: Setting System.Console.OutputEncoding should change System.Console.Out.Encoding Classification: Mono Product: Mono: Class Libraries Version: 2.10.x Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: CORLIB AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0b13pre) Gecko/20110303 Firefox/4.0b13pre see steps to reproduce. currently Setting System.Console.OutputEncoding does not change System.Console.Out.Encoding, while I personally think it should. Reproducible: Always Steps to Reproduce: 1. try to run the following code. namespace TEST2 { class MainClass { public static void Main (string[] args) { System.Console.WriteLine(System.Console.OutputEncoding); System.Console.WriteLine(System.Console.Out.Encoding); System.Console.OutputEncoding = System.Text.Encoding.UTF8; System.Console.WriteLine(System.Console.OutputEncoding); // the following property is not UTF8 in Mono System.Console.WriteLine(System.Console.Out.Encoding); // http://ideone.com/xF3pP } } } Actual Results: System.Text.ASCIIEncoding System.Text.ASCIIEncoding System.Text.UTF8Encoding System.Text.ASCIIEncoding Expected Results: System.Text.ASCIIEncoding System.Text.ASCIIEncoding System.Text.UTF8Encoding System.Text.UTF8Encoding when I ran this program on Windows XP SP3(JPN), MS Implementation produced as follows, System.Text.DBCSCodePageEncoding System.Text.DBCSCodePageEncoding System.Text.UTF8Encoding System.Text.UTF8Encoding while Mono 2.10.1 produced as follows. I18N.CJK.CP932 I18N.CJK.CP932 System.Text.UTF8Encoding I18N.CJK.CP932 -- 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
