Problem: ins_compl_equal_sc() uses MB_TOLOWER() on single bytes, but
it indexes raw bytes, not decoded characters (after v9.1.0651).
Solution: Use TOLOWER_LOC(), matching what STRNICMP()/ins_compl_equal()
does (glephunter).
closes: #20535
Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
for (int i = 0; i < len; ++i)
{
if (i >= typed && i < longest_end
- ? MB_TOLOWER(match->cp_str.string[i]) != MB_TOLOWER(str[i])
+ ? TOLOWER_LOC(match->cp_str.string[i]) != TOLOWER_LOC(str[i])
: match->cp_str.string[i] != str[i])
return FALSE;
}
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 656,
/**/
655,
/**/