From 2aad0e433cedd9e30dc505b94fabb4bd36fe9cb5 Mon Sep 17 00:00:00 2001 From: Markus Scherer Date: Mon, 23 Oct 2000 22:03:24 +0000 Subject: [PATCH] ICU-544 safer handling of u+303e X-SVN-Rev: 2763 --- icu4c/source/tools/makeconv/gb18030/gbmake4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/tools/makeconv/gb18030/gbmake4.c b/icu4c/source/tools/makeconv/gb18030/gbmake4.c index 12916fbc1c..f35b640f48 100644 --- a/icu4c/source/tools/makeconv/gb18030/gbmake4.c +++ b/icu4c/source/tools/makeconv/gb18030/gbmake4.c @@ -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); } }