mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-17 02:37:25 +00:00
ICU-418 fix latin-1 ucnv_getNextUChar() - zero-extend, not sign-extend, input byte
X-SVN-Rev: 1543
This commit is contained in:
parent
e7a7e26131
commit
84a56632ae
1 changed files with 3 additions and 2 deletions
|
@ -137,8 +137,9 @@ static UChar32 T_UConverter_getNextUChar_LATIN_1(UConverter* converter,
|
|||
*err = U_INDEX_OUTOFBOUNDS_ERROR;
|
||||
return 0xFFFD;
|
||||
}
|
||||
|
||||
return (UChar)*((*source)++);
|
||||
|
||||
/* make sure that we zero-extend, not sign-extend, the byte */
|
||||
return (UChar)(uint8_t)*((*source)++);
|
||||
}
|
||||
|
||||
static const UConverterImpl _Latin1Impl={
|
||||
|
|
Loading…
Add table
Reference in a new issue