* CultureInfo.cs: Make specific names lower case, because all data
authorJackson Harper <jackson@novell.com>
Tue, 27 Apr 2004 17:31:26 +0000 (17:31 -0000)
committerJackson Harper <jackson@novell.com>
Tue, 27 Apr 2004 17:31:26 +0000 (17:31 -0000)
in the culture info tables is lowercase.

svn path=/trunk/mcs/; revision=26063

mcs/class/corlib/System.Globalization/ChangeLog
mcs/class/corlib/System.Globalization/CultureInfo.cs

index 201df68ed9919fae67a1d7484f3d3534ac227410..2a2e129fc2c130d3fc5677a1b7b6622d1faf6910 100644 (file)
@@ -1,3 +1,8 @@
+2004-04-27  Jackson Harper <jackson@ximian.com>
+
+       * CultureInfo.cs: Make specific names lower case, because all data
+       in the culture info tables is lowercase.
+       
 2004-04-25  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
 
        * CultureInfo.cs: Call invariant String.ToLower
index 9b6863cd4f96f648252f881858cd77430966bdbd..dd28ccc1bb1c9c0b417cf15e4e8be3475ab1e751 100644 (file)
@@ -84,7 +84,7 @@ namespace System.Globalization
                                return InvariantCulture;
 
                        CultureInfo ci = new CultureInfo ();
-                       if (!construct_internal_locale_from_specific_name (ci, name))
+                       if (!construct_internal_locale_from_specific_name (ci, name.ToLowerInvariant ()))
                                throw new ArgumentException ("Culture name " + name +
                                                " is not supported.", name);