From b2b4ea881bff70f3f6f748c6c26f332b3962ea8f Mon Sep 17 00:00:00 2001 From: sleske Date: Sun, 11 Aug 2013 20:26:25 +0000 Subject: Fix:core:Fix warnings by not using g_str(n)casecmp; new function navit_utf8_strcasecmp.|Part of #1154. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5572 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/linguistics.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'navit/linguistics.c') diff --git a/navit/linguistics.c b/navit/linguistics.c index 2483a4890..d249cdab9 100644 --- a/navit/linguistics.c +++ b/navit/linguistics.c @@ -458,13 +458,13 @@ linguistics_next_word(char *str) int linguistics_search(const char *str) { - if (!g_strcasecmp(str,"str")) + if (!g_ascii_strcasecmp(str,"str")) return 0; - if (!g_strcasecmp(str,"str.")) + if (!g_ascii_strcasecmp(str,"str.")) return 0; - if (!g_strcasecmp(str,"strasse")) + if (!g_ascii_strcasecmp(str,"strasse")) return 0; - if (!g_strcasecmp(str,"weg")) + if (!g_ascii_strcasecmp(str,"weg")) return 0; return 1; } -- cgit v1.2.1