aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-06-12 12:48:05 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-06-12 12:48:05 +0800
commit5ea1f1d1cff441f1cb25a9ee02a17fe62984003c (patch)
tree6586dccddfa6d185b531808b801d71d58c95434e
parent5cabf1be00f596a7497d50b3d72bce841bdaed91 (diff)
downloadgsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.tar
gsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.tar.gz
gsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.tar.bz2
gsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.tar.lz
gsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.tar.xz
gsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.tar.zst
gsoc2013-evolution-5ea1f1d1cff441f1cb25a9ee02a17fe62984003c.zip
Partial fix for bug #44457.
2003-06-11 Jeffrey Stedfast <fejj@ximian.com> Partial fix for bug #44457. * camel-mime-part-utils.c (simple_data_wrapper_construct_from_parser): Make sure to set rawtext to FALSE if we successfully convert the text to UTF-8. * camel-data-wrapper.c (camel_data_wrapper_init): Default the value of rawtext to TRUE instead of FALSE. This way if the mailer decides to try displaying a non-textual part as text, it knows that it needs to convert the content to UTF-8. svn path=/trunk/; revision=21420
-rw-r--r--camel/ChangeLog16
-rw-r--r--camel/camel-data-wrapper.c2
-rw-r--r--camel/camel-mime-part-utils.c1
3 files changed, 17 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 62dd624984..335f346cc5 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,16 @@
+2003-06-11 Jeffrey Stedfast <fejj@ximian.com>
+
+ Partial fix for bug #44457.
+
+ * camel-mime-part-utils.c
+ (simple_data_wrapper_construct_from_parser): Make sure to set
+ rawtext to FALSE if we successfully convert the text to UTF-8.
+
+ * camel-data-wrapper.c (camel_data_wrapper_init): Default the
+ value of rawtext to TRUE instead of FALSE. This way if the mailer
+ decides to try displaying a non-textual part as text, it knows
+ that it needs to convert the content to UTF-8.
+
2003-06-04 Jeffrey Stedfast <fejj@ximian.com>
* camel-uid-cache.c (camel_uid_cache_new): Create the directory
@@ -20,7 +33,8 @@
2003-06-11 Larry Ewing <lewing@ximian.com>
- * camel-text-index.c (text_index_normalise): use g_utf8_strdown properly.
+ * camel-text-index.c (text_index_normalise): use g_utf8_strdown
+ properly.
2003-06-09 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/camel/camel-data-wrapper.c b/camel/camel-data-wrapper.c
index de0e2e2cf0..e1d27896a4 100644
--- a/camel/camel-data-wrapper.c
+++ b/camel/camel-data-wrapper.c
@@ -76,7 +76,7 @@ camel_data_wrapper_init (gpointer object, gpointer klass)
camel_data_wrapper->mime_type = header_content_type_new ("application", "octet-stream");
camel_data_wrapper->offline = FALSE;
- camel_data_wrapper->rawtext = FALSE;
+ camel_data_wrapper->rawtext = TRUE;
}
static void
diff --git a/camel/camel-mime-part-utils.c b/camel/camel-mime-part-utils.c
index 7f55dc7639..384e235dd6 100644
--- a/camel/camel-mime-part-utils.c
+++ b/camel/camel-mime-part-utils.c
@@ -380,6 +380,7 @@ simple_data_wrapper_construct_from_parser (CamelDataWrapper *dw, CamelMimeParser
if (out) {
/* converted ok, use this data instead */
g_byte_array_free(buffer, TRUE);
+ dw->rawtext = FALSE;
buffer = out;
} else {
/* else failed to convert, leave as raw? */