aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r--mail/em-utils.c6
1 files changed, 4 insertions, 2 deletions
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);