Skip to content

Commit

Permalink
2005-05-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
Browse files Browse the repository at this point in the history
	* 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
  • Loading branch information
migueldeicaza committed May 9, 2005
1 parent a04f309 commit 01e00f4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mcs/class/System/System.Collections.Specialized/ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,14 @@ class ProcessStringDictionary : StringDictionary, IEnumerable

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 {
Expand Down

0 comments on commit 01e00f4

Please sign in to comment.