ICU-6608 Redo previous change due to accidental removal by revision #27717.

X-SVN-Rev: 27767
This commit is contained in:
Michael Ow 2010-03-03 18:08:17 +00:00
parent 78c2548e2e
commit 126fb0e574

View file

@ -790,7 +790,7 @@ createConverter(ConvData *data, const char *converterName, UErrorCode *pErrorCod
fprintf(stderr, " the substitution character byte sequence is illegal in this codepage structure!\n");
*pErrorCode=U_INVALID_TABLE_FORMAT;
} else if(1!=ucm_countChars(baseStates, &staticData->subChar1, 1)) {
} else if(staticData->subChar1!=0 && 1!=ucm_countChars(baseStates, &staticData->subChar1, 1)) {
fprintf(stderr, " the subchar1 byte is illegal in this codepage structure!\n");
*pErrorCode=U_INVALID_TABLE_FORMAT;