Author: lluis
Date: 2005-06-27 10:21:59 -0400 (Mon, 27 Jun 2005)
New Revision: 46556

Modified:
   trunk/mcs/class/System/System.ComponentModel/ChangeLog
   trunk/mcs/class/System/System.ComponentModel/CultureInfoConverter.cs
Log:
2005-06-27  LLuis Sanchez Gual  <[EMAIL PROTECTED]>

        * CultureInfoConverter.cs: Correctly look for verbose name of
        the culture being converted.



Modified: trunk/mcs/class/System/System.ComponentModel/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/ChangeLog      2005-06-27 
13:56:34 UTC (rev 46555)
+++ trunk/mcs/class/System/System.ComponentModel/ChangeLog      2005-06-27 
14:21:59 UTC (rev 46556)
@@ -1,3 +1,8 @@
+2005-06-27  LLuis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * CultureInfoConverter.cs: Correctly look for verbose name of
+       the culture being converted.
+
 2005-06-08 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * ToolboxItemAttribute.cs: fix the fix that was fixed before.

Modified: trunk/mcs/class/System/System.ComponentModel/CultureInfoConverter.cs
===================================================================
--- trunk/mcs/class/System/System.ComponentModel/CultureInfoConverter.cs        
2005-06-27 13:56:34 UTC (rev 46555)
+++ trunk/mcs/class/System/System.ComponentModel/CultureInfoConverter.cs        
2005-06-27 14:21:59 UTC (rev 46556)
@@ -76,7 +76,7 @@
                                        // try to create a new CultureInfo if 
form is verbose name
                                        foreach (CultureInfo CI in 
CultureInfo.GetCultures (CultureTypes.AllCultures))
                                        // LAMESPEC MS seems to use EnglishName 
(culture invariant) - check this
-                                               if 
(CI.EnglishName.ToString().IndexOf (CultureString) > 0)
+                                               if 
(CI.EnglishName.ToString().IndexOf (CultureString) >= 0)
                                                        return CI;
                                }
                                throw new ArgumentException ("Culture incorrect 
or not available in this environment.", "value");

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to