From: Jan Kotas Date: Sat, 20 Jan 2018 21:32:46 +0000 (-0800) Subject: Fix timezone lookup to be consistently case insensitive (#15951) X-Git-Tag: accepted/tizen/base/20180629.140029~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ab91124003c73c28d0067f9a822b48eb829ad5cf;p=platform%2Fupstream%2Fcoreclr.git Fix timezone lookup to be consistently case insensitive (#15951) The timezone ids used case insensitive comparisons everywhere, except in the dictionary used to cache timezones. Fixes dotnet/corefx#26479 --- diff --git a/src/mscorlib/shared/System/TimeZoneInfo.cs b/src/mscorlib/shared/System/TimeZoneInfo.cs index f9b5ce8..6e27376 100644 --- a/src/mscorlib/shared/System/TimeZoneInfo.cs +++ b/src/mscorlib/shared/System/TimeZoneInfo.cs @@ -1894,7 +1894,7 @@ namespace System if (result == TimeZoneInfoResult.Success) { if (cachedData._systemTimeZones == null) - cachedData._systemTimeZones = new Dictionary(); + cachedData._systemTimeZones = new Dictionary(StringComparer.OrdinalIgnoreCase); cachedData._systemTimeZones.Add(id, match);