diff options
author | Miguel de Icaza <miguel@gnome.org> | 2005-05-09 22:05:51 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2005-05-09 22:05:51 +0400 |
commit | 01e00f43cfb40cd6236f6a56d92d426cba0f1736 (patch) | |
tree | 6a784140c83873507f949b731ca284d7695c2e8e | |
parent | a04f30944b966383b17715e2e1e469dd68a92fac (diff) |
2005-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* ProcessStringDictionary.cs: on non-windows system, don't make the
hashtable case-insensitive. Fixes bug #74796.
svn path=/branches/mono-1-1-7/mcs/; revision=44291
-rwxr-xr-x | mcs/class/System/System.Collections.Specialized/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/mcs/class/System/System.Collections.Specialized/ChangeLog b/mcs/class/System/System.Collections.Specialized/ChangeLog index b355b6771d7..c2acdd6e3a6 100755 --- a/mcs/class/System/System.Collections.Specialized/ChangeLog +++ b/mcs/class/System/System.Collections.Specialized/ChangeLog @@ -1,3 +1,8 @@ +2005-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com> + + * ProcessStringDictionary.cs: on non-windows system, don't make the + hashtable case-insensitive. Fixes bug #74796. + 2005-03-23 Lluis Sanchez Gual <lluis@novell.com> * OrderedDictionary.cs: Fix bug in item setter. diff --git a/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs b/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs index dfe07d68b9c..cee67f09c92 100644 --- a/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs +++ b/mcs/class/System/System.Collections.Specialized/ProcessStringDictionary.cs @@ -41,8 +41,14 @@ namespace System.Collections.Specialized 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 { |