ICU-3346 do not copy subChar1

X-SVN-Rev: 13711
This commit is contained in:
Markus Scherer 2003-11-13 05:15:40 +00:00
parent 9e8b274329
commit be20a30b7d

View File

@ -763,13 +763,11 @@ createConverter(ConvData *data, const char *converterName, UErrorCode *pErrorCod
uprv_memcpy(staticData->subChar, baseData.staticData.subChar, 4);
staticData->subCharLen=baseData.staticData.subCharLen;
}
if(states->minCharLength==1 && states->maxCharLength>=2) {
if(staticData->subChar1==0) {
staticData->subChar1=baseData.staticData.subChar1;
}
} else {
staticData->subChar1=0;
}
/*
* do not copy subChar1 -
* only use what is explicitly specified
* because it cannot be unset in the extension file header
*/
/* get the fallback flags */
fallbackFlags=0;