1
0
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:
Witold Filipczyk 2006-07-18 00:44:08 +02:00 committed by Witold Filipczyk
parent 8052c74a03
commit 7dc2b5bf02

View File

@ -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--);
}