ICU-3259 Fix a time zone failure

X-SVN-Rev: 13358
This commit is contained in:
George Rhoten 2003-10-07 23:56:36 +00:00
parent 64b4031062
commit 7c001d153c

View File

@ -161,7 +161,7 @@ void Test4056591()
u_uastrcpy(pat, "yyMMdd"); u_uastrcpy(pat, "yyMMdd");
def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL, NULL, 0,pat, u_strlen(pat), &status); def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL, tzID, -1, pat, u_strlen(pat), &status);
if(U_FAILURE(status)) if(U_FAILURE(status))
{ {
log_err("FAIL: error in creating the dateformat using u_openPattern(): %s\n", myErrorName(status)); log_err("FAIL: error in creating the dateformat using u_openPattern(): %s\n", myErrorName(status));
@ -203,11 +203,14 @@ void Test4059917()
UChar *myDate; UChar *myDate;
UErrorCode status = U_ZERO_ERROR; UErrorCode status = U_ZERO_ERROR;
UChar *pattern; UChar *pattern;
UChar tzID[4];
log_verbose("Testing apply pattern and to pattern regressively\n"); log_verbose("Testing apply pattern and to pattern regressively\n");
u_uastrcpy(tzID, "PST");
pattern=(UChar*)malloc(sizeof(UChar) * 11); pattern=(UChar*)malloc(sizeof(UChar) * 11);
u_uastrcpy(pattern, "yyyy/MM/dd"); u_uastrcpy(pattern, "yyyy/MM/dd");
log_verbose("%s\n", austrdup(pattern) ); log_verbose("%s\n", austrdup(pattern) );
def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,NULL,0,pattern, u_strlen(pattern),&status); def = udat_open(UDAT_IGNORE,UDAT_IGNORE,NULL,tzID,-1,pattern, u_strlen(pattern),&status);
if(U_FAILURE(status)) if(U_FAILURE(status))
{ {
log_err("FAIL: error in creating the dateformat using openPattern: %s\n", myErrorName(status)); log_err("FAIL: error in creating the dateformat using openPattern: %s\n", myErrorName(status));