From 5ea1f1d1cff441f1cb25a9ee02a17fe62984003c Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 12 Jun 2003 04:48:05 +0000 Subject: Partial fix for bug #44457. 2003-06-11 Jeffrey Stedfast 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 --- camel/ChangeLog | 16 +++++++++++++++- camel/camel-data-wrapper.c | 2 +- camel/camel-mime-part-utils.c | 1 + 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 + + 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 * camel-uid-cache.c (camel_uid_cache_new): Create the directory @@ -20,7 +33,8 @@ 2003-06-11 Larry Ewing - * 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 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? */ -- cgit v1.2.3