regexp: Do not use locale-dependent functions in cstrchr

This commit is contained in:
ZyX 2017-04-07 23:18:36 +03:00
parent ac1cb1c72f
commit caeff6e1af

View File

@ -6309,10 +6309,10 @@ static inline char_u *cstrchr(const char_u *const s, const int c)
}
int cc;
if (vim_isupper(c)) {
cc = vim_tolower(c);
} else if (vim_islower(c)) {
cc = vim_toupper(c);
if (ASCII_ISUPPER(c)) {
cc = TOLOWER_ASC(c);
} else if (ASCII_ISLOWER(c)) {
cc = TOUPPER_ASC(c);
} else {
return vim_strchr(s, c);
}