From 8c1ef74efdf5d88a42d438d7deb7c294ff029174 Mon Sep 17 00:00:00 2001 From: "simon.zheng" Date: Tue, 3 Jul 2007 07:36:15 +0000 Subject: ** Fix for bug #453294 2007-07-03 simon.zheng ** Fix for bug #453294 * em-utils.c: (em_utils_save_parts): Convert filename encoding from UTF-8 to current locale before saving attachement. svn path=/trunk/; revision=33746 --- mail/ChangeLog | 7 +++++++ mail/em-utils.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 8815059126..26cdbdeacd 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,10 @@ +2007-07-03 simon.zheng + + ** Fix for bug #453294 + + * em-utils.c: (em_utils_save_parts): Convert filename encoding + from UTF-8 to current locale before saving attachement. + 2007-07-02 Srinivasa Ragavan ** Fix for bug #449811 diff --git a/mail/em-utils.c b/mail/em-utils.c index ff99c6d2ff..7fba93cd35 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -434,10 +434,12 @@ em_utils_save_parts (GtkWidget *parent, const gchar *prompt, GSList *parts) for (iter = parts; iter != NULL; iter = iter->next) { CamelMimePart *part = iter->data; - const gchar *filename; + const gchar *filename, *utf8_filename; gchar *uri; - filename = emu_save_get_filename_for_part (part); + utf8_filename = emu_save_get_filename_for_part (part); + filename = g_filename_from_utf8 ((const char *) utf8_filename, -1, NULL, NULL, NULL); + g_free (utf8_filename); uri = g_build_path ("/", path_uri, filename, NULL); -- cgit