aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-02 04:31:03 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-02 04:31:03 +0800
commit37af98188c94b614dcc54211bca1f7448f04cbd0 (patch)
tree2059e7473433d92a7ba043f84bd4e4971b9aa215 /camel
parent12d2a2ee5985d07eb731a5e84f3c4fc50cd8b47d (diff)
downloadgsoc2013-evolution-37af98188c94b614dcc54211bca1f7448f04cbd0.tar.gz
gsoc2013-evolution-37af98188c94b614dcc54211bca1f7448f04cbd0.tar.zst
gsoc2013-evolution-37af98188c94b614dcc54211bca1f7448f04cbd0.zip
If the charset is x-unknown, return the locale_charset.
2001-10-01 Jeffrey Stedfast <fejj@ximian.com> * camel-charset-map.c (camel_charset_to_iconv): If the charset is x-unknown, return the locale_charset. svn path=/trunk/; revision=13281
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-charset-map.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 4b98d3d9b3..6d3cd92791 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-01 Jeffrey Stedfast <fejj@ximian.com>
+
+ * camel-charset-map.c (camel_charset_to_iconv): If the charset is
+ x-unknown, return the locale_charset.
+
2001-10-01 Dan Winship <danw@ximian.com>
* camel-provider.h: Fix up the provider flags to specify things
diff --git a/camel/camel-charset-map.c b/camel/camel-charset-map.c
index dbd956a15d..02ea31a44c 100644
--- a/camel/camel-charset-map.c
+++ b/camel/camel-charset-map.c
@@ -399,7 +399,11 @@ camel_charset_to_iconv (const char *name)
if (name == NULL)
return NULL;
-
+
+ /* special-case hack... */
+ if (!g_strcasecmp (name, "x-unknown"))
+ return locale_charset ? locale_charset : "iso-8859-1";
+
ICONV_CHARSETS_LOCK ();
charset = g_hash_table_lookup (iconv_charsets, name);
if (!charset) {