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

X-SVN-Rev: 35381
This commit is contained in:
Markus Scherer 2014-03-07 17:31:39 +00:00
parent 7b0172a8aa
commit c9cda28161

View file

@ -1518,7 +1518,9 @@ void CollationAPITest::TestVariableTopSetting() {
UChar vt[256] = { 0 };
Collator *coll = Collator::createInstance(status);
// Use the root collator, not the default collator.
// This test fails with en_US_POSIX which tailors the dollar sign after 'A'.
Collator *coll = Collator::createInstance(Locale::getRoot(), status);
if(U_FAILURE(status)) {
delete coll;
errcheckln(status, "Collator creation failed with error %s", u_errorName(status));