aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog7
-rw-r--r--mail/em-utils.c6
2 files changed, 11 insertions, 2 deletions
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 <simon.zheng@sun.com>
+
+ ** 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 <sragavan@novell.com>
** 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);