diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-02-08 09:22:58 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-02-08 09:22:58 +0000 |
commit | 2a790ab66bf113d914c7a6307d6c3092ab0b936a (patch) | |
tree | 7870d07b9c5bc67b89e20d8b4043642299635d41 /src/compose.c | |
parent | 3fe4ea91de3aba0cb629de313ed6c41f4c06b385 (diff) |
fixed non-utf8 filename handlings.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@99 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/compose.c')
-rw-r--r-- | src/compose.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/compose.c b/src/compose.c index 162bde94..984739a1 100644 --- a/src/compose.c +++ b/src/compose.c @@ -5450,11 +5450,15 @@ static void compose_attach_cb(gpointer data, guint action, GtkWidget *widget) { Compose *compose = (Compose *)data; const gchar *file; + gchar *utf8_filename; file = filesel_select_file(_("Select file"), NULL); - if (file && *file) - compose_attach_append(compose, file, file, NULL); + if (file && *file) { + utf8_filename = conv_filename_to_utf8(file); + compose_attach_append(compose, file, utf8_filename, NULL); + g_free(utf8_filename); + } } static void compose_insert_file_cb(gpointer data, guint action, |