diff options
author | Dan Winship <danw@src.gnome.org> | 2000-06-17 06:42:12 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-06-17 06:42:12 +0800 |
commit | f0600c2ccbfbd5378cdf980e2d53210c0101639d (patch) | |
tree | 6321ea59524bf53f09e57bf1fedde7783f83aaf4 | |
parent | 325ee9a266a538d72018110ba578b670dcdd0dbf (diff) | |
download | gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.tar gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.tar.gz gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.tar.bz2 gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.tar.lz gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.tar.xz gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.tar.zst gsoc2013-evolution-f0600c2ccbfbd5378cdf980e2d53210c0101639d.zip |
KLUDGE! Since neither ETable nor GtkHTML supports UTF-8 yet, output
* camel-mime-utils.c (rfc2047_decode_word):
* camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser):
* camel-folder-summary.c (summary_build_content_info):
KLUDGE! Since neither ETable nor GtkHTML supports UTF-8 yet,
output ISO-8859-1 instead, so Ettore can read his Italian mail. :)
This will be reverted later.
svn path=/trunk/; revision=3597
-rw-r--r-- | camel/ChangeLog | 9 | ||||
-rw-r--r-- | camel/camel-folder-summary.c | 8 | ||||
-rw-r--r-- | camel/camel-mime-part-utils.c | 8 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 2 |
4 files changed, 18 insertions, 9 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 6d523c893e..e8ae2fbfa9 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,12 @@ +2000-06-16 Dan Winship <danw@helixcode.com> + + * camel-mime-utils.c (rfc2047_decode_word): + * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): + * camel-folder-summary.c (summary_build_content_info): + KLUDGE! Since neither ETable nor GtkHTML supports UTF-8 yet, + output ISO-8859-1 instead, so Ettore can read his Italian mail. :) + This will be reverted later. + 2000-06-15 Jeffrey Stedfast <fejj@helixcode.com> * providers/imap/camel-imap-folder.c (imap_get_summary): Started to implement diff --git a/camel/camel-folder-summary.c b/camel/camel-folder-summary.c index 1224047b29..26b7f2e413 100644 --- a/camel/camel-folder-summary.c +++ b/camel/camel-folder-summary.c @@ -1237,18 +1237,18 @@ summary_build_content_info(CamelFolderSummary *s, CamelMimeParser *mp) charset = header_content_type_param(ct, "charset"); if (charset!=NULL && !(strcasecmp(charset, "us-ascii")==0 - || strcasecmp(charset, "utf-8")==0)) { - d(printf(" Adding conversion filter from %s to utf-8\n", charset)); + || strcasecmp(charset, "iso-8859-1")==0)) { + d(printf(" Adding conversion filter from %s to iso-8859-1\n", charset)); mfc = g_hash_table_lookup(p->filter_charset, charset); if (mfc == NULL) { - mfc = camel_mime_filter_charset_new_convert(charset, "utf-8"); + mfc = camel_mime_filter_charset_new_convert(charset, "iso-8859-1"); if (mfc) g_hash_table_insert(p->filter_charset, g_strdup(charset), mfc); } if (mfc) { chr_id = camel_mime_parser_filter_add(mp, (CamelMimeFilter *)mfc); } else { - g_warning("Cannot convert '%s' to 'utf-8', message index may be corrupt", charset); + g_warning("Cannot convert '%s' to 'iso-8859-1', message index may be corrupt", charset); } } diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c index 304f343758..d82f65c90d 100644 --- a/camel/camel-mime-part-utils.c +++ b/camel/camel-mime-part-utils.c @@ -88,13 +88,13 @@ simple_data_wrapper_construct_from_parser(CamelDataWrapper *dw, CamelMimeParser const char *charset = header_content_type_param(ct, "charset"); if (charset!=NULL && !(strcasecmp(charset, "us-ascii")==0 - || strcasecmp(charset, "utf-8")==0)) { - d(printf("Adding conversion filter from %s to utf-8\n", charset)); - fch = (CamelMimeFilter *)camel_mime_filter_charset_new_convert(charset, "utf-8"); + || strcasecmp(charset, "iso-8859-1")==0)) { + d(printf("Adding conversion filter from %s to iso-8859-1\n", charset)); + fch = (CamelMimeFilter *)camel_mime_filter_charset_new_convert(charset, "iso-8859-1"); if (fch) { chrid = camel_mime_parser_filter_add(mp, (CamelMimeFilter *)fch); } else { - g_warning("Cannot convert '%s' to 'utf-8', message display may be corrupt", charset); + g_warning("Cannot convert '%s' to 'iso-8859-1', message display may be corrupt", charset); } } diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 6dd5ae4ac7..85016ed245 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -724,7 +724,7 @@ rfc2047_decode_word(const char *in, int len) outbuf = outbase; /* TODO: Should this cache iconv converters? */ - ic = unicode_iconv_open("utf-8", encname); + ic = unicode_iconv_open("iso-8859-1", encname); if (ic != (unicode_iconv_t)-1) { ret = unicode_iconv(ic, (const char **)&inbuf, &inlen, &outbuf, &outlen); unicode_iconv_close(ic); |