ICU-1438 filter out unrelated new options bits when case-folding a code point

X-SVN-Rev: 8663
This commit is contained in:
Markus Scherer 2002-05-22 00:38:11 +00:00
parent 08e8447729
commit 0e4d7bb60a

View file

@ -1467,7 +1467,7 @@ u_foldCase(UChar32 c, uint32_t options) {
pe=oldPE;
} else {
/* special case folding mappings, hardcoded */
if(options==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
if((options&_FOLD_CASE_OPTIONS_MASK)==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
/* map dotted I and dotless i to U+0069 small i */
return 0x69;
}
@ -1526,7 +1526,7 @@ u_internalFoldCase(UChar32 c,
return length;
} else {
/* special case folding mappings, hardcoded */
if(options==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
if((options&_FOLD_CASE_OPTIONS_MASK)==U_FOLD_CASE_DEFAULT && (uint32_t)(c-0x130)<=1) {
/* map dotted I and dotless i to U+0069 small i */
result =0x69;
/* goto single; */