diff options
Diffstat (limited to 'enc/iso_8859_10.c')
-rw-r--r-- | enc/iso_8859_10.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/enc/iso_8859_10.c b/enc/iso_8859_10.c index 569c26c264..d302c78023 100644 --- a/enc/iso_8859_10.c +++ b/enc/iso_8859_10.c @@ -252,10 +252,7 @@ case_map (OnigCaseFoldType* flagP, const OnigUChar** pp, else if ((EncISO_8859_10_CtypeTable[code] & BIT_CTYPE_UPPER) && (flags & (ONIGENC_CASE_DOWNCASE|ONIGENC_CASE_FOLD))) { flags |= ONIGENC_CASE_MODIFIED; - if (code>=0xA0 && code<=0xBF) - code += 0x10; - else - code += 0x20; + code = ENC_ISO_8859_10_TO_LOWER_CASE(code); } else if ((EncISO_8859_10_CtypeTable[code]&BIT_CTYPE_LOWER) && (flags&ONIGENC_CASE_UPCASE)) { |