[Mono-bugs] [Bug 77347][Nor] New - new CultureInfo("en").Clone() fails

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 24 15:28:04 EST 2006


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 mike.hull at coversant.net.

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

--- shadow/77347	2006-01-24 15:28:04.000000000 -0500
+++ shadow/77347.tmp.21419	2006-01-24 15:28:04.000000000 -0500
@@ -0,0 +1,51 @@
+Bug#: 77347
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: Mono 1.1.10.1 on Gentoo Linux and Mono 1.1.10 on Windows XP SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mike.hull at coversant.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: new CultureInfo("en").Clone()  fails
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+
+Steps to reproduce the problem:
+1.       
+[Test]
+public void TestCultureClone()
+{
+  CultureInfo culture = new CultureInfo("en");
+  CultureInfo cultureClone = culture.Clone() as CultureInfo;
+  Debug.Assert(culture.Equals(cultureClone), "Culture should be equal.");
+}
+
+Actual Results:
+System.NotSupportedException: Culture "en" is a neutral culture. It can not be
+sed in formatting and parsing and therefore cannot be set as the thread's curre
+t culture.
+in <0x00080> System.Globalization.CultureInfo:CheckNeutral ()
+in <0x0002d> System.Globalization.CultureInfo:get_NumberFormat ()
+in <0x0004c> System.Globalization.CultureInfo:Clone ()
+in <0x00033> CultureClone.Program:TestCultureClone ()
+in <0x0002e> CultureClone.Program:Main (System.String[] args)
+
+
+Expected Results:
+No exception and a successful clone.
+
+How often does this happen? 
+Everytime.
+
+Additional Information:


More information about the mono-bugs mailing list