From 047043d2a8ee4482a845ed9860dbf4cd01540eef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Oct 2008 19:36:37 +0200 Subject: locate: use g_utf8_casefold() instead of string_toupper() string_toupper() and strDupToUpper() were not able to deal with character sets other than US-ASCII. Use GLib's g_utf8_casefold() for strings. --- src/utils.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c index 9cd2190e..57d1f30f 100644 --- a/src/utils.c +++ b/src/utils.c @@ -24,7 +24,6 @@ #include #include -#include #include #include #include @@ -45,23 +44,6 @@ char *myFgets(char *buffer, int bufferSize, FILE * fp) return ret; } -char *string_toupper(char *str) -{ - int i = strlen(str); - char *ret = str; - - for (; --i >= 0; ++str) - *str = toupper((int)(*str)); - - return ret; - -} - -char *strDupToUpper(char *str) -{ - return string_toupper(xstrdup(str)); -} - void stripReturnChar(char *string) { while (string && (string = strchr(string, '\n'))) { -- cgit v1.2.3