diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-20 10:44:24 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-01-20 10:44:24 +0000 |
commit | 3206d072bf2428930bea2d4c7a66bd68db1a467c (patch) | |
tree | e3904abdc6672f503bb07d66c4a39259b7ca28da /src/compose.c | |
parent | 01d70967aec02a07321c0724bf62d9dd37daa6e0 (diff) |
allow non-ascii mailto string and filename on --compose option.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@916 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 3a216f47..071cbd7b 100644 --- a/src/compose.c +++ b/src/compose.c @@ -1,6 +1,6 @@ /* * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client - * Copyright (C) 1999-2005 Hiroyuki Yamamoto + * Copyright (C) 1999-2006 Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -721,8 +721,12 @@ void compose_new(PrefsAccount *account, FolderItem *item, const gchar *mailto, gchar *file; for (i = 0; i < attach_files->len; i++) { + gchar *utf8file; + file = g_ptr_array_index(attach_files, i); - compose_attach_append(compose, file, file, NULL); + utf8file = conv_filename_to_utf8(file); + compose_attach_append(compose, file, utf8file, NULL); + g_free(utf8file); } } |