mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Case insensitive search works but accented letters
This commit is contained in:
parent
8052c74a03
commit
7dc2b5bf02
@ -472,10 +472,10 @@ lowered_string(UCHAR *text, int textlen)
|
||||
|
||||
if (textlen < 0) textlen = strlen_u(text);
|
||||
|
||||
ret = mem_calloc(1, (textlen + 1) * sizeof(UCHAR));
|
||||
ret = memacpy_u(text, textlen);
|
||||
if (ret && textlen) {
|
||||
do {
|
||||
ret[textlen] = tolower(text[textlen]);
|
||||
ret[textlen] = tolower(ret[textlen]);
|
||||
} while (textlen--);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user