Author: miguel
Date: 2005-05-09 14:05:51 -0400 (Mon, 09 May 2005)
New Revision: 44291
Modified:
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ChangeLog
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
Log:
2005-05-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
* ProcessStringDictionary.cs: on non-windows system, don't make the
hashtable case-insensitive. Fixes bug #74796.
Modified:
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ChangeLog
===================================================================
---
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ChangeLog
2005-05-09 16:43:56 UTC (rev 44290)
+++
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ChangeLog
2005-05-09 18:05:51 UTC (rev 44291)
@@ -1,3 +1,8 @@
+2005-05-05 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+ * ProcessStringDictionary.cs: on non-windows system, don't make the
+ hashtable case-insensitive. Fixes bug #74796.
+
2005-03-23 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* OrderedDictionary.cs: Fix bug in item setter.
Modified:
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
===================================================================
---
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
2005-05-09 16:43:56 UTC (rev 44290)
+++
branches/mono-1-1-7/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
2005-05-09 18:05:51 UTC (rev 44291)
@@ -41,8 +41,14 @@
public ProcessStringDictionary ()
{
- table = new Hashtable
(CaseInsensitiveHashCodeProvider.Default,
-
CaseInsensitiveComparer.Default);
+ IHashCodeProvider hash_provider = null;
+ IComparer comparer = null;
+ if ((int) Environment.OSVersion.Platform != 128) {
+ hash_provider =
CaseInsensitiveHashCodeProvider.DefaultInvariant;
+ comparer =
CaseInsensitiveComparer.DefaultInvariant;
+ }
+
+ table = new Hashtable (hash_provider, comparer);
}
public override int Count {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches