mbyte: replace vim_tolower with mb_tolower handling locale correctly

This commit is contained in:
Björn Linse
2017-04-08 16:45:38 +02:00
parent 3b88e37b83
commit db9ef6263e
16 changed files with 79 additions and 135 deletions

View File

@@ -336,7 +336,7 @@ int pat_has_uppercase(char_u *pat)
int l;
if (has_mbyte && (l = (*mb_ptr2len)(p)) > 1) {
if (enc_utf8 && utf_isupper(utf_ptr2char(p)))
if (enc_utf8 && mb_isupper(utf_ptr2char(p)))
return TRUE;
p += l;
} else if (*p == '\\') {
@@ -348,7 +348,7 @@ int pat_has_uppercase(char_u *pat)
p += 2;
else
p += 1;
} else if (vim_isupper(*p))
} else if (mb_isupper(*p))
return TRUE;
else
++p;