mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-5273 fix IDNAToUnicode to not fail on error
X-SVN-Rev: 21277
This commit is contained in:
parent
55ab205b9c
commit
0bbbe4b84f
1 changed files with 2 additions and 1 deletions
|
@ -477,7 +477,7 @@ _internal_toUnicode(const UChar* src, int32_t srcLength,
|
|||
}
|
||||
|
||||
//step 3: verify ACE Prefix
|
||||
if(startsWithPrefix(src,srcLength)){
|
||||
if(startsWithPrefix(b1,b1Len)){
|
||||
|
||||
//step 4: Remove the ACE Prefix
|
||||
b1Prime = b1 + ACE_PREFIX_LENGTH;
|
||||
|
@ -591,6 +591,7 @@ CLEANUP:
|
|||
}
|
||||
}
|
||||
reqLength = srcLength;
|
||||
*status = U_ZERO_ERROR;
|
||||
}
|
||||
|
||||
return u_terminateUChars(dest, destCapacity, reqLength, status);
|
||||
|
|
Loading…
Add table
Reference in a new issue