diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-02 04:31:03 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-02 04:31:03 +0800 |
commit | 37af98188c94b614dcc54211bca1f7448f04cbd0 (patch) | |
tree | 2059e7473433d92a7ba043f84bd4e4971b9aa215 /camel/camel-charset-map.c | |
parent | 12d2a2ee5985d07eb731a5e84f3c4fc50cd8b47d (diff) | |
download | gsoc2013-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/camel-charset-map.c')
-rw-r--r-- | camel/camel-charset-map.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |