ICU-673 Fixed inclusion of GB2312 extensions

X-SVN-Rev: 2722
This commit is contained in:
Ram Viswanadha 2000-10-17 22:56:32 +00:00
parent 7e0c5ee2a5
commit 8cc7ad4f93

View file

@ -656,7 +656,11 @@ U_CFUNC void UConverter_fromUnicode_HZ(UConverterFromUnicodeArgs *args, UErrorCo
*err =U_INVALID_CHAR_FOUND;
goto CALLBACK;
}
if(((targetUniChar & 0x8080) != 0x8080)&& length==2){
reason =UCNV_ILLEGAL;
*err =U_INVALID_CHAR_FOUND;
goto CALLBACK;
}
myConverterData->isTargetUCharDBCS = isTargetUCharDBCS = (UBool)(targetUniChar>0x00FF);