aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}