mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-96 more fixes for non English machines
X-SVN-Rev: 4228
This commit is contained in:
parent
f1d28184e9
commit
fee342363d
2 changed files with 6 additions and 4 deletions
|
@ -167,11 +167,13 @@ CollationAPITest::TestProperty(/* char* par */)
|
|||
logln("Get display name for the US English collation in English : ");
|
||||
logln(Collator::getDisplayName(Locale::US, Locale::ENGLISH, name));
|
||||
doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed");
|
||||
|
||||
#if 0
|
||||
// weiv : this test is bogus if we're running on any machine that has different default locale than English.
|
||||
// Therefore, it is banned!
|
||||
logln("Get display name for the US English in default locale language : ");
|
||||
logln(Collator::getDisplayName(Locale::US, name));
|
||||
doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed");
|
||||
|
||||
doAssert((name == UnicodeString("English (United States)")), "getDisplayName failed if this is an English machine");
|
||||
#endif
|
||||
delete col; col = 0;
|
||||
col = Collator::createInstance(Locale::FRENCH, success);
|
||||
if (U_FAILURE(success))
|
||||
|
|
|
@ -77,7 +77,7 @@ void CollationCurrencyTest::currencyTest(/*char *par*/)
|
|||
uint32_t i, j;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
Collator::EComparisonResult expectedResult = Collator::EQUAL;
|
||||
RuleBasedCollator *c = (RuleBasedCollator *)Collator::createInstance(status);
|
||||
RuleBasedCollator *c = (RuleBasedCollator *)Collator::createInstance("en_US", status);
|
||||
|
||||
if (U_FAILURE(status))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue