diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | enc/unicode.c | 7 |
2 files changed, 7 insertions, 4 deletions
@@ -1,3 +1,7 @@ +Mon Mar 28 14:36:36 2016 Martin Duerst <duerst@it.aoyama.ac.jp> + + * enc/unicode.c: Minor refactoring for I WITH DOT ABOVE. + Mon Mar 28 14:26:24 2016 Martin Duerst <duerst@it.aoyama.ac.jp> * enc/unicode.c: Removed code now covered by data from table. diff --git a/enc/unicode.c b/enc/unicode.c index 0e5d29b913..e51c2a1363 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -696,10 +696,9 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, if (code==I_WITH_DOT_ABOVE) { if (flags&ONIGENC_CASE_DOWNCASE) { MODIFIED; - if (flags&ONIGENC_CASE_FOLD_TURKISH_AZERI) - code = 'i'; - else { /* make dot above explicit */ - to += ONIGENC_CODE_TO_MBC(enc, 'i', to); + code = 'i'; + if (!(flags&ONIGENC_CASE_FOLD_TURKISH_AZERI)) { /* make dot above explicit */ + to += ONIGENC_CODE_TO_MBC(enc, code, to); code = DOT_ABOVE; } } |