Bug 318476 (MONO75499) - The hy-AM culture is duplicated while getting cultures using CultureInfo.GetCultures
Summary: The hy-AM culture is duplicated while getting cultures using CultureInfo.GetC...
Status: RESOLVED FIXED
Alias: MONO75499
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Atsushi Enomoto
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-07 11:47 UTC by Jean-Baptiste Evain
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:24:35 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".