aboutsummaryrefslogtreecommitdiff
path: root/src/importldif.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/importldif.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/importldif.c')
-rw-r--r--src/importldif.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/importldif.c b/src/importldif.c
index d1b392b6..a26501f7 100644
--- a/src/importldif.c
+++ b/src/importldif.c
@@ -53,6 +53,7 @@
#include "manage_window.h"
#include "mgutils.h"
#include "ldif.h"
+#include "codeconv.h"
#include "utils.h"
#define IMPORTLDIF_GUESS_NAME "LDIF Import"
@@ -428,7 +429,10 @@ static void imp_ldif_file_select( void ) {
GTK_FILE_CHOOSER_ACTION_OPEN );
g_free( sFile );
if ( sSelFile ) {
- gtk_entry_set_text( GTK_ENTRY(impldif_dlg.file_entry), sSelFile );
+ gchar *sUTF8File;
+ sUTF8File = conv_filename_to_utf8( sSelFile );
+ gtk_entry_set_text( GTK_ENTRY(impldif_dlg.file_entry), sUTF8File );
+ g_free( sUTF8File );
g_free( sSelFile );
}
}