mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 23:10:40 +00:00
ICU-544 safer handling of u+303e
X-SVN-Rev: 2763
This commit is contained in:
parent
2be0117179
commit
2aad0e433c
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ incFourGB18030(unsigned char bytes[4]) {
|
|||
static void
|
||||
incSkipFourGB18030(unsigned char bytes[4]) {
|
||||
incFourGB18030(bytes);
|
||||
if(0==memcmp(bytes, skip303eBytes, 4)) {
|
||||
/* make sure to skip the mismapped sequence */
|
||||
if(0==memcmp(bytes, skip303eBytes, 4) && flags[0x303e]==1) {
|
||||
/* make sure to skip the mismapped sequence if the data correctly maps U+303e==GB+a989 */
|
||||
incFourGB18030(bytes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue