aboutsummaryrefslogtreecommitdiff
path: root/src/importcsv.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-10 04:49:51 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2007-04-10 04:49:51 +0000
commit460f81039d540e3eccce832b6df910d1018f3cdc (patch)
tree65923a14935a8d63bf71209e6f7edbb17cdcddaf /src/importcsv.c
parentce08da8427ceb2919e30212e1512fcc62e0d1d3f (diff)
convert filename to UTF-8 in CSV/LDIF import.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1604 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/importcsv.c')
-rw-r--r--src/importcsv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/importcsv.c b/src/importcsv.c
index 24f218fc..78322060 100644
--- a/src/importcsv.c
+++ b/src/importcsv.c
@@ -56,6 +56,7 @@
#include "manage_window.h"
#include "mgutils.h"
#include "importcsv.h"
+#include "codeconv.h"
#include "utils.h"
#define IMPORTCSV_GUESS_NAME "CSV Import"
@@ -476,7 +477,10 @@ static void imp_csv_file_select( void ) {
GTK_FILE_CHOOSER_ACTION_OPEN );
g_free( sFile );
if (sSelFile) {
- gtk_entry_set_text( GTK_ENTRY(impcsv_dlg.file_entry), sSelFile );
+ gchar *sUTF8File;
+ sUTF8File = conv_filename_to_utf8( sSelFile );
+ gtk_entry_set_text( GTK_ENTRY(impcsv_dlg.file_entry), sUTF8File );
+ g_free( sUTF8File );
g_free( sSelFile );
}
}