[Mono-bugs] [Bug 58611][Maj] New - System.Globalization.CultureInfo broken in beta1

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 17 May 2004 15:47:05 -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 edd@usefulinc.com.

http://bugzilla.ximian.com/show_bug.cgi?id=58611

--- shadow/58611	2004-05-17 15:47:05.000000000 -0400
+++ shadow/58611.tmp.12257	2004-05-17 15:47:05.000000000 -0400
@@ -0,0 +1,55 @@
+Bug#: 58611
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: edd@usefulinc.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Globalization.CultureInfo broken in beta1
+
+In Mono 0.31, I could program happily against GNU.Gettext.dll from the
+gettext 0.14 package.  In beta1, I cannot.
+
+You can test this using the examples/hello-csharp example from gettext.
+
+Under 0.31 it runs fine.  Under beta1, I get this output:
+
+Unhandled Exception: System.ArgumentException: Culture name  is not supported.
+Parameter name: name
+in <0x000d1> System.Globalization.CultureInfo:.ctor (int,bool)
+in <0x00012> System.Globalization.CultureInfo:.ctor (int)
+in <0x00046> System.Globalization.CultureInfo:get_Parent ()
+in <0x00121> GNU.Gettext.GettextResourceManager:GetResourceSetsFor
+(System.Globalization.CultureInfo)
+in <0x00182> GNU.Gettext.GettextResourceManager:GetResourceSetsFor
+(System.Globalization.CultureInfo)
+in <0x00182> GNU.Gettext.GettextResourceManager:GetResourceSetsFor
+(System.Globalization.CultureInfo)
+in <0x0002e> GNU.Gettext.GettextResourceManager:GetString
+(string,System.Globalization.CultureInfo)
+in <0x00026> GNU.Gettext.GettextResourceManager:GetString (string)
+in <0x00183> Hello:Main (string[])
+
+
+My LANG is en_GB.UTF-8.
+
+setting lang to C, i get:
+
+Unhandled Exception: System.ArgumentException: Culture name C is not supported.
+Parameter name: name
+in <0x000f0> System.Globalization.CultureInfo:.ctor (string,bool)
+in <0x00012> System.Globalization.CultureInfo:.ctor (string)
+in <0x0011c> Hello:Main (string[])
+
+
+I can send along a custom example too with makefiles and stuff if you need
+another one.