diff --git a/icu4c/source/test/intltest/idnaref.cpp b/icu4c/source/test/intltest/idnaref.cpp index d2caaa6c016..dc2b07dd3a3 100644 --- a/icu4c/source/test/intltest/idnaref.cpp +++ b/icu4c/source/test/intltest/idnaref.cpp @@ -583,12 +583,6 @@ getNextSeparator(UChar *src,int32_t srcLength,NamePrepTransform* prep, } } - // we have not found the delimiter - if(i==srcLength){ - *limit = src+srcLength; - *done = TRUE; - } - return i; }else{ int32_t i; for(i=0;ifilename && *(basename-1)!=U_FILE_SEP_CHAR) { + *basename++=U_FILE_SEP_CHAR; + } /* process unassigned */ basename=filename+uprv_strlen(filename); @@ -137,10 +139,13 @@ testData(TestIDNA& test) { *basename++=U_FILE_SEP_CHAR; } + /* first copy misc directory */ + saveBasename = basename; uprv_strcpy(basename,MISC_DIR); - basename= basename + uprv_strlen(MISC_DIR); - *basename++ = U_FILE_SEP_CHAR; + basename = basename + uprv_strlen(MISC_DIR); + *basename++=U_FILE_SEP_CHAR; + /* process unassigned */ uprv_strcpy(basename,fileNames[0]); parseTable(filename,TRUE, test,&errorCode); if(U_FAILURE(errorCode)) { @@ -216,7 +221,7 @@ parseMappings(const char *filename,UBool withNorm, UBool reportError, TestIDNA& //fprintf(stdout,"Number of code points that have mappings with length >1 : %i\n",len); if(U_FAILURE(*pErrorCode) && (reportError || *pErrorCode!=U_FILE_ACCESS_ERROR)) { - test.errln( "genidn error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); + test.errln( "testidn error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); } } @@ -256,7 +261,7 @@ parseTable(const char *filename,UBool isUnassigned,TestIDNA& test, UErrorCode *p if(U_FAILURE(*pErrorCode)) { - test.errln( "genidn error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); + test.errln( "testidn error: u_parseDelimitedFile(\"%s\") failed - %s\n", filename, u_errorName(*pErrorCode)); } }