Author: gonzalo
Date: 2005-05-05 02:37:24 -0400 (Thu, 05 May 2005)
New Revision: 44064
Modified:
trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
trunk/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: trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
2005-05-05 05:25:11 UTC (rev 44063)
+++ trunk/mcs/class/System/System.Collections.Specialized/ChangeLog
2005-05-05 06:37:24 UTC (rev 44064)
@@ -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:
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
===================================================================
---
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
2005-05-05 05:25:11 UTC (rev 44063)
+++
trunk/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs
2005-05-05 06:37:24 UTC (rev 44064)
@@ -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