Bugzilla – Bug 318476
The hy-AM culture is duplicated while getting cultures using CultureInfo.GetCultures
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by mono@evain.net 2005-07-07 04:47:34 MST ---- 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: ---- Additional Comments From atsushi@ximian.com 2005-07-07 04:58:12 MST ---- interestingly, there were hy_AM.xml and hy_AM_REVISED.xml in locale-builder archive. This should be excluded in the table generator. ---- Additional Comments From atsushi@ximian.com 2005-07-07 06:29:25 MST ---- Fixed as r47032. Unknown operating system unknown. Setting to default OS "Other".