Use Ordinal when searching for collation keyword
authorMatt Ellis <matell@microsoft.com>
Wed, 23 Sep 2015 06:47:59 +0000 (23:47 -0700)
committerMatt Ellis <matell@microsoft.com>
Wed, 23 Sep 2015 06:54:15 +0000 (23:54 -0700)
commit52157825d6b55a24aebabe6f1e0507dc7a26bc2f
tree2f8e785cc7adceb2b81ed310787520c3a93f8f37
parent65abcc1c361c522cfdef291e6de2e3f0a119c9e6
Use Ordinal when searching for collation keyword

IndexOf by default is culture specific, which could lead to us doing
the wrong thing depending on the current culture and also can cause
problems where we need to access CultureData while we are still building
up culture information, causing infinite recursion.

Some collection tests were triggering the latter case and failing after
we merged in the ICU changes.
src/mscorlib/corefx/System/Globalization/CultureData.Unix.cs