diff options
author | simon.zheng <simon.zheng@sun.com> | 2007-07-03 15:36:15 +0800 |
---|---|---|
committer | Simon Zheng <simonz@src.gnome.org> | 2007-07-03 15:36:15 +0800 |
commit | 8c1ef74efdf5d88a42d438d7deb7c294ff029174 (patch) | |
tree | 34169226be8a2e8d31ce43c646d7b41255666221 /mail/em-utils.c | |
parent | 1dd2335bad649804c5d96e4ceaebf1961a6fa099 (diff) | |
download | gsoc2013-evolution-8c1ef74efdf5d88a42d438d7deb7c294ff029174.tar.gz gsoc2013-evolution-8c1ef74efdf5d88a42d438d7deb7c294ff029174.tar.zst gsoc2013-evolution-8c1ef74efdf5d88a42d438d7deb7c294ff029174.zip |
** Fix for bug #453294
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.
svn path=/trunk/; revision=33746
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 6 |
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); |