ICU-10738 CollationAPITest/TestVariableTopSetting use the root collator, fails with en_US_POSIX

X-SVN-Rev: 35382
This commit is contained in:
Markus Scherer 2014-03-07 17:32:11 +00:00
parent c9cda28161
commit dc9edbf4e8

View File

@ -901,7 +901,9 @@ public class CollationAPITest extends TestFmwk {
}
public void TestVariableTopSetting() {
RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance();
// Use the root collator, not the default collator.
// This test fails with en_US_POSIX which tailors the dollar sign after 'A'.
RuleBasedCollator coll = (RuleBasedCollator)Collator.getInstance(ULocale.ROOT);
int oldVarTop = coll.getVariableTop();