From 2ef45a7f7facad7fa2ffaf1011aefc7a60898a6c Mon Sep 17 00:00:00 2001 From: Jose Dapena Paz Date: Mon, 22 Dec 2008 11:33:50 +0000 Subject: [PATCH 1/1] Modest textutils utf8 comparison bug fixed pmo-trunk-r6971 --- src/modest-text-utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index d228e17..bb4da39 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -1330,7 +1330,7 @@ modest_text_utils_utf8_strcmp (const gchar* s1, const gchar *s2, gboolean insens /* optimization: shortcut if first char is ascii */ if (((s1[0] & 0x80) == 0) && ((s2[0] & 0x80) == 0) && - (s1[0] != s2[0])) + (tolower(s1[0]) != tolower (s2[0]))) return tolower(s1[0]) - tolower(s2[0]); n1 = g_utf8_strdown (s1, -1); -- 1.7.9.5