diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-10-09 02:58:30 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-09 02:58:30 +0800 |
commit | 0f4eae903dfb1075b50c428ab79cf80f1188479a (patch) | |
tree | 4489f229f917530b1b70b618a85da4a4c7bd25ce | |
parent | a191834cb1786763e75c6b32a593c0d854e06a81 (diff) | |
download | gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar.gz gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar.zst gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.zip |
Convert the htmlinfo into utf8. Fixes bug #11966.
2001-10-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-format.c (attachment_header): Convert the htmlinfo into
utf8. Fixes bug #11966.
svn path=/trunk/; revision=13506
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-format.c | 11 |
2 files changed, 11 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 03427d8d12..4209fa7b32 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-10-08 Jeffrey Stedfast <fejj@ximian.com> + + * mail-format.c (attachment_header): Convert the htmlinfo into + utf8. Fixes bug #11966. + 2001-10-08 Dan Winship <danw@frotz.mysterion.org> * component-factory.c (create_view): For mailstorage folders, diff --git a/mail/mail-format.c b/mail/mail-format.c index 5a8192f38c..f3b364fde2 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -608,9 +608,8 @@ mail_part_toggle_displayed (CamelMimePart *part, MailDisplay *md) static void attachment_header (CamelMimePart *part, const char *mime_type, MailDisplay *md) { + char *htmlinfo, *html, *fmt; const char *info; - char *htmlinfo; - char *fmt; /* Start the table, create the pop-up object. */ mail_html_write (md->html, md->stream, @@ -623,12 +622,14 @@ attachment_header (CamelMimePart *part, const char *mime_type, MailDisplay *md) /* Write the MIME type */ info = gnome_vfs_mime_get_value (mime_type, "description"); - htmlinfo = e_text_to_html (info ? info : mime_type, 0); + html = e_text_to_html (info ? info : mime_type, 0); + htmlinfo = e_utf8_from_locale_string (html); + g_free (html); fmt = e_utf8_from_locale_string (_("%s attachment")); mail_html_write (md->html, md->stream, fmt, htmlinfo); - g_free (fmt); g_free (htmlinfo); - + g_free (fmt); + /* Write the name, if we have it. */ info = camel_mime_part_get_filename (part); if (info) { |