aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-09 02:58:30 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-09 02:58:30 +0800
commit0f4eae903dfb1075b50c428ab79cf80f1188479a (patch)
tree4489f229f917530b1b70b618a85da4a4c7bd25ce /mail/mail-format.c
parenta191834cb1786763e75c6b32a593c0d854e06a81 (diff)
downloadgsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar
gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar.gz
gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar.bz2
gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar.lz
gsoc2013-evolution-0f4eae903dfb1075b50c428ab79cf80f1188479a.tar.xz
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
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c11
1 files changed, 6 insertions, 5 deletions
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) {