X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FSystem.Net%2FCookie.cs;h=dcc56400a75b9ae4057a554af34c40006557b964;hb=3c717f5efc3146217f1b0b3944e38d2b376e8483;hp=4c82641abb3cdf1af97b6c8349604b535b31381e;hpb=c46bb06223bab6012c99e7a8410d9db6269f5857;p=mono.git diff --git a/mcs/class/System/System.Net/Cookie.cs b/mcs/class/System/System.Net/Cookie.cs index 4c82641abb3..dcc56400a75 100644 --- a/mcs/class/System/System.Net/Cookie.cs +++ b/mcs/class/System/System.Net/Cookie.cs @@ -31,6 +31,7 @@ using System; using System.Text; +using System.Globalization; namespace System.Net { @@ -57,7 +58,6 @@ namespace System.Net { int version; static char [] reservedCharsName = new char [] {' ', '=', ';', ',', '\n', '\r', '\t'}; - static char [] reservedCharsValue = new char [] {';', ','}; static char [] portSeparators = new char [] {'"', ','}; static string tspecials = "()<>@,;:\\\"/[]?={} \t"; // from RFC 2965, 2068 @@ -227,10 +227,10 @@ namespace System.Net { 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; }