diff --git a/Src/DLR b/Src/DLR index 7b478c32c..872730ab3 160000 --- a/Src/DLR +++ b/Src/DLR @@ -1 +1 @@ -Subproject commit 7b478c32cc228c5226920965c6d1ecfaa0cfd1e4 +Subproject commit 872730ab305d37f67179db8ca778d1cd22984e67 diff --git a/Src/IronPython/Runtime/Operations/StringOps.cs b/Src/IronPython/Runtime/Operations/StringOps.cs index 929faa75e..ca1cf3896 100644 --- a/Src/IronPython/Runtime/Operations/StringOps.cs +++ b/Src/IronPython/Runtime/Operations/StringOps.cs @@ -2079,7 +2079,7 @@ static CodecsInfo() { #if DEBUG foreach (KeyValuePair> kvp in d) { // all codecs should be stored in lowercase because we only look up from lowercase strings - Debug.Assert(kvp.Key.ToLower(CultureInfo.InvariantCulture) == kvp.Key); + Debug.Assert(kvp.Key.Equals(kvp.Key, StringComparison.OrdinalIgnoreCase)); // all codec names should use underscores instead of dashes to match lookup values Debug.Assert(kvp.Key.IndexOf('-') < 0); } diff --git a/Src/IronPythonTest/Util/IniParser.cs b/Src/IronPythonTest/Util/IniParser.cs index a392dd2b2..a5101dfc1 100644 --- a/Src/IronPythonTest/Util/IniParser.cs +++ b/Src/IronPythonTest/Util/IniParser.cs @@ -72,7 +72,8 @@ private static OptionStore Parse(IEnumerable lines) { if (string.IsNullOrEmpty(line)) continue; - if (line.StartsWith("[", StringComparison.Ordinal) && line.EndsWith("]", StringComparison.Ordinal)) { + //if (line.StartsWith('[', StringComparison.Ordinal) && line.EndsWith(']', StringComparison.Ordinal)) { + if (line.Length >= 2 && line[0] == '[' && line[line.Length - 1] == ']') { var sectionName = line.Substring(1, line.Length - 2); if (!options.TryGetValue(sectionName, out currentSection)) { currentSection = new Section();