diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-09-14 02:36:53 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-09-14 02:36:53 +0800 |
commit | c9ee98edc7223d480a1da4f5feddcb70d1a3ac8e (patch) | |
tree | 0063b276001f16b1dc5e814633b921c11f85eefb /camel/camel-mime-part-utils.c | |
parent | b59ff6e2f0e09ca24c6f9a08590cc4be9ccb2cef (diff) | |
download | gsoc2013-evolution-c9ee98edc7223d480a1da4f5feddcb70d1a3ac8e.tar.gz gsoc2013-evolution-c9ee98edc7223d480a1da4f5feddcb70d1a3ac8e.tar.zst gsoc2013-evolution-c9ee98edc7223d480a1da4f5feddcb70d1a3ac8e.zip |
Convert the charset to the iconv-friendly name.
2001-09-13 Jeffrey Stedfast <fejj@ximian.com>
* camel-mime-part-utils.c
(simple_data_wrapper_construct_from_parser): Convert the charset
to the iconv-friendly name.
* camel-charset-map.c (camel_charset_to_iconv): Add code to
convert windows-[cp]#### charsets to their iconv-friendly format
of cp####.
svn path=/trunk/; revision=12804
Diffstat (limited to 'camel/camel-mime-part-utils.c')
-rw-r--r-- | camel/camel-mime-part-utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 086549d346..a9e971ba58 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -189,6 +189,8 @@ simple_data_wrapper_construct_from_parser (CamelDataWrapper *dw, CamelMimeParser ct = camel_mime_parser_content_type(mp); if (header_content_type_is(ct, "text", "*")) { charset = header_content_type_param(ct, "charset"); + if (charset) + charset = camel_charset_to_iconv (charset); if (fdec) { d(printf("Adding CRLF conversion filter\n")); |