Use g_ascii_strcasecmp() instead of strcasecmp(). The strings we are
authorTor Lillqvist <tml@novell.com>
Thu, 15 Sep 2005 22:39:47 +0000 (22:39 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Thu, 15 Sep 2005 22:39:47 +0000 (22:39 +0000)
2005-09-16  Tor Lillqvist  <tml@novell.com>

* libedataserver/e-iconv.c (e_iconv_charset_language): Use
g_ascii_strcasecmp() instead of strcasecmp(). The strings we are
comparing are just ASCII anyway, so spell it out that we really do
need ASCII casefolding only.

ChangeLog
libedataserver/e-iconv.c

index ae5cf55..836bba8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-09-16  Tor Lillqvist  <tml@novell.com>
+
+       * libedataserver/e-iconv.c (e_iconv_charset_language): Use
+       g_ascii_strcasecmp() instead of strcasecmp(). The strings we are
+       comparing are just ASCII anyway, so spell it out that we really do
+       need ASCII casefolding only.
+
 2005-09-15  Tor Lillqvist  <tml@novell.com>
 
        * acinclude.m4 (EVO_PTHREAD_CHECK): Check if pthread_t is an
index f9bdae4..7c3bbe7 100644 (file)
@@ -619,7 +619,7 @@ e_iconv_charset_language (const char *charset)
        
        charset = e_iconv_charset_name (charset);
        for (i = 0; i < NUM_CJKR_LANGS; i++) {
-               if (!strcasecmp (cjkr_lang_map[i].charset, charset))
+               if (!g_ascii_strcasecmp (cjkr_lang_map[i].charset, charset))
                        return cjkr_lang_map[i].lang;
        }