[Mono-bugs] [Bug 75499][Wis] New - The hy-AM culture is duplicated while getting cultures using CultureInfo.GetCultures

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 7 04:47:34 EDT 2005


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 mono at evain.net.

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

--- shadow/75499	2005-07-07 04:47:34.000000000 -0400
+++ shadow/75499.tmp.2422	2005-07-07 04:47:34.000000000 -0400
@@ -0,0 +1,59 @@
+Bug#: 75499
+Product: Mono: Runtime
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: mono at evain.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The hy-AM culture is duplicated while getting cultures using CultureInfo.GetCultures
+
+Description of Problem:
+If you use CultureInfo.GetCultures to get an array of all cultures, the
+culture hy-AM is duplicated.
+
+Steps to reproduce the problem:
+1. 
+
+Compile and run this code:
+
+using System;
+using System.Collections;
+using System.Globalization;
+
+class Test {
+	
+	public static void Main ()
+	{
+		CultureInfo [] cultures = CultureInfo.GetCultures (CultureTypes.AllCultures);
+
+		IList cache = new ArrayList ();
+
+		foreach (CultureInfo ci in cultures) {
+			Console.WriteLine (ci.Name);
+			if (cache.Contains (ci.Name))
+				Console.WriteLine ("duplicate: {0}", ci.Name);
+			else
+				cache.Add (ci.Name);
+		}
+	}
+}
+
+Actual Results:
+duplicated: hy-AM
+
+Expected Results:
+No duplicate
+
+How often does this happen? 
+Always
+
+Additional Information:


More information about the mono-bugs mailing list