mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-2404 fully handle <subchar1> and |2 in converters
X-SVN-Rev: 13524
This commit is contained in:
parent
47ca718f33
commit
ed77bf009c
1 changed files with 6 additions and 0 deletions
|
@ -1024,6 +1024,12 @@ ucm_addMappingAuto(UCMFile *ucm, UBool forBase, UCMStates *baseStates,
|
|||
uint8_t bytes[UCNV_EXT_MAX_BYTES]) {
|
||||
int32_t type;
|
||||
|
||||
if(m->f==2 && m->uLen>1) {
|
||||
fprintf(stderr, "ucm error: illegal <subchar1> |2 mapping from multiple code points\n");
|
||||
printMapping(m, codePoints, bytes, stderr);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if(baseStates!=NULL) {
|
||||
/* check validity of the bytes and count the characters in them */
|
||||
type=ucm_mappingType(baseStates, m, codePoints, bytes);
|
||||
|
|
Loading…
Add table
Reference in a new issue