aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2005-09-28 19:35:31 +0800
committerTor Lillqvist <tml@src.gnome.org>2005-09-28 19:35:31 +0800
commit31485fd4119368e7c208a1ff86860a7e2370532f (patch)
treeb13e814393c648b6050fcd3dd03c698cf0ff14d9
parent41d4bb2a43de01bd1db28f20a7a6084064a73cb1 (diff)
downloadgsoc2013-evolution-31485fd4119368e7c208a1ff86860a7e2370532f.tar.gz
gsoc2013-evolution-31485fd4119368e7c208a1ff86860a7e2370532f.tar.zst
gsoc2013-evolution-31485fd4119368e7c208a1ff86860a7e2370532f.zip
Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to
2005-09-28 Tor Lillqvist <tml@novell.com> * e-charset-picker.c (e_charset_picker_new, e_charset_picker_bonobo_ui_populate): Use g_ascii_strcasecmp() instead of strcasecmp(). We are comparing to strings known to be plain ASCII, so just casefolding ASCII is enough. Also better for portability. svn path=/trunk/; revision=30406
-rw-r--r--widgets/misc/ChangeLog8
-rw-r--r--widgets/misc/e-charset-picker.c8
2 files changed, 12 insertions, 4 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 8a8ba84774..c4b0eb859c 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,11 @@
+2005-09-28 Tor Lillqvist <tml@novell.com>
+
+ * e-charset-picker.c (e_charset_picker_new,
+ e_charset_picker_bonobo_ui_populate): Use g_ascii_strcasecmp()
+ instead of strcasecmp(). We are comparing to strings known to be
+ plain ASCII, so just casefolding ASCII is enough. Also better for
+ portability.
+
2005-09-20 Devashish Sharma <sdevashish@novell.com>
* e-search-bar.c (subitem_activated_cb): Emits the signal "search
diff --git a/widgets/misc/e-charset-picker.c b/widgets/misc/e-charset-picker.c
index 79693ace1b..f0cb307000 100644
--- a/widgets/misc/e-charset-picker.c
+++ b/widgets/misc/e-charset-picker.c
@@ -300,13 +300,13 @@ e_charset_picker_new (const char *default_charset)
const char *locale_charset;
g_get_charset (&locale_charset);
- if (!strcasecmp (locale_charset, "US-ASCII"))
+ if (!g_ascii_strcasecmp (locale_charset, "US-ASCII"))
locale_charset = "iso-8859-1";
if (!default_charset)
default_charset = locale_charset;
for (def = 0; def < num_charsets; def++) {
- if (!strcasecmp (charsets[def].name, default_charset))
+ if (!g_ascii_strcasecmp (charsets[def].name, default_charset))
break;
}
@@ -466,13 +466,13 @@ e_charset_picker_bonobo_ui_populate (BonoboUIComponent *uic, const char *path,
int def, i;
g_get_charset (&locale_charset);
- if (!strcasecmp (locale_charset, "US-ASCII"))
+ if (!g_ascii_strcasecmp (locale_charset, "US-ASCII"))
locale_charset = "iso-8859-1";
if (!default_charset)
default_charset = locale_charset;
for (def = 0; def < num_charsets; def++) {
- if (!strcasecmp (charsets[def].name, default_charset))
+ if (!g_ascii_strcasecmp (charsets[def].name, default_charset))
break;
}