Author: miguel
Date: 2005-03-30 20:34:40 -0500 (Wed, 30 Mar 2005)
New Revision: 42407

Modified:
   trunk/mcs/class/System/System.Net/ChangeLog
   trunk/mcs/class/System/System.Net/Cookie.cs
Log:
2005-03-30  Miguel de Icaza  <[EMAIL PROTECTED]>

        * Cookie.cs: Compare using the InvariantCulture, to match the
        behavior of CookieContainer that already did this.

Modified: trunk/mcs/class/System/System.Net/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Net/ChangeLog 2005-03-31 00:08:46 UTC (rev 
42406)
+++ trunk/mcs/class/System/System.Net/ChangeLog 2005-03-31 01:34:40 UTC (rev 
42407)
@@ -1,3 +1,8 @@
+2005-03-30  Miguel de Icaza  <[EMAIL PROTECTED]>
+
+       * Cookie.cs: Compare using the InvariantCulture, to match the
+       behavior of CookieContainer that already did this.
+
 2005-03-30 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
 
        * WebConnection.cs: we don't need to trigger the next queued request

Modified: trunk/mcs/class/System/System.Net/Cookie.cs
===================================================================
--- trunk/mcs/class/System/System.Net/Cookie.cs 2005-03-31 00:08:46 UTC (rev 
42406)
+++ trunk/mcs/class/System/System.Net/Cookie.cs 2005-03-31 01:34:40 UTC (rev 
42407)
@@ -31,6 +31,7 @@
 
 using System;
 using System.Text;
+using System.Globalization;
 
 namespace System.Net {
 
@@ -227,10 +228,10 @@
                        System.Net.Cookie c = obj as System.Net.Cookie;         
        
                        
                        return c != null &&
-                              String.Compare (this.name, c.name, true) == 0 &&
-                              String.Compare (this.val, c.val, false) == 0 &&
-                              String.Compare (this.path, c.path, false) == 0 &&
-                              String.Compare (this.domain, c.domain, true) == 
0 &&
+                              String.Compare (this.name, c.name, true, 
CultureInfo.InvariantCulture) == 0 &&
+                              String.Compare (this.val, c.val, false, 
CultureInfo.InvariantCulture) == 0 &&
+                              String.Compare (this.path, c.path, false, 
CultureInfo.InvariantCulture) == 0 &&
+                              String.Compare (this.domain, c.domain, true, 
CultureInfo.InvariantCulture) == 0 &&
                               this.version == c.version;
                }
 

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

Reply via email to