ICU-5273 fix IDNAToUnicode to not fail on error

X-SVN-Rev: 21277
This commit is contained in:
Ram Viswanadha 2007-03-17 01:22:52 +00:00
parent 55ab205b9c
commit 0bbbe4b84f

View File

@ -477,7 +477,7 @@ _internal_toUnicode(const UChar* src, int32_t srcLength,
} }
//step 3: verify ACE Prefix //step 3: verify ACE Prefix
if(startsWithPrefix(src,srcLength)){ if(startsWithPrefix(b1,b1Len)){
//step 4: Remove the ACE Prefix //step 4: Remove the ACE Prefix
b1Prime = b1 + ACE_PREFIX_LENGTH; b1Prime = b1 + ACE_PREFIX_LENGTH;
@ -591,6 +591,7 @@ CLEANUP:
} }
} }
reqLength = srcLength; reqLength = srcLength;
*status = U_ZERO_ERROR;
} }
return u_terminateUChars(dest, destCapacity, reqLength, status); return u_terminateUChars(dest, destCapacity, reqLength, status);