[Mono-bugs] [Bug 68930][Nor] New - Encoding.GetEncoding("latin1") throws Exception

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 29 Oct 2004 08:23:43 -0400 (EDT)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by juraj@hotfeet.ch.


--- shadow/68930	2004-10-29 08:23:43.000000000 -0400
+++ shadow/68930.tmp.1998	2004-10-29 08:23:43.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 68930
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: juraj@hotfeet.ch               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Encoding.GetEncoding("latin1") throws Exception
+System.Text.Encoding.GetEncoding("latin1") throws NotSupportedException.
+MS.NET returns a Latin1Encoding object.
+The "official" MySql data provider (Beta 1.0.1) needs this to work properly.
+Simple test case and bug fix are attached.
+Output Mono (HEAD):
+[js@apollo js]$ mono latin1.exe
+Unhandled Exception: System.NotSupportedException: Encoding name `latin1'
+not supported
+in <0x002a4> System.Text.Encoding:GetEncoding (string)
+in <0x0000f> Test:Main ()
+Output MS.NET: