ICU-4354 comment out the indirection and fix the main code

X-SVN-Rev: 18145
This commit is contained in:
Ram Viswanadha 2005-07-05 22:10:04 +00:00
parent a685ae1380
commit 213b08e722
2 changed files with 5 additions and 1 deletions

View File

@ -1151,6 +1151,9 @@ TimeZone::createCustomTimeZone(const UnicodeString& id)
UErrorCode success = U_ZERO_ERROR;
numberFormat = NumberFormat::createInstance(success);
if(U_FAILURE(success)){
return NULL;
}
numberFormat->setParseIntegerOnly(TRUE);

View File

@ -799,7 +799,7 @@ void TimeZoneTest::TestCustomParse()
{
UnicodeString id(kData[i].customId);
int32_t exp = kData[i].expectedOffset;
/*
{ // for no data test Jitterbug 4354
UErrorCode success = U_ZERO_ERROR;
NumberFormat* numberFormat = NumberFormat::createInstance(success);
@ -809,6 +809,7 @@ void TimeZoneTest::TestCustomParse()
}
delete numberFormat;
}
*/
TimeZone *zone = TimeZone::createTimeZone(id);
UnicodeString itsID, temp;