Merge branch 'm-utf-8' of ssh://angel_il@midnight-commander.org:2222/git/mc into m-utf-8

This commit is contained in:
Ilia Maslakov 2009-04-18 14:51:01 +00:00
commit 28425d427f

View File

@ -513,7 +513,7 @@ str_8bit_search_first (const char *text, const char *search, int case_sen)
size_t offsset; size_t offsset;
fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text)); fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text));
fold_search = (case_sen) ? (char *) text : g_strdown (g_strdup (search)); fold_search = (case_sen) ? (char *) search : g_strdown (g_strdup (search));
match = g_strstr_len (fold_text, -1, fold_search); match = g_strstr_len (fold_text, -1, fold_search);
if (match != NULL) if (match != NULL)
@ -540,7 +540,7 @@ str_8bit_search_last (const char *text, const char *search, int case_sen)
size_t offsset; size_t offsset;
fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text)); fold_text = (case_sen) ? (char *) text : g_strdown (g_strdup (text));
fold_search = (case_sen) ? (char *) text : g_strdown (g_strdup (search)); fold_search = (case_sen) ? (char *) search : g_strdown (g_strdup (search));
match = g_strrstr_len (fold_text, -1, fold_search); match = g_strrstr_len (fold_text, -1, fold_search);
if (match != NULL) if (match != NULL)