diff options
Diffstat (limited to 'mail/importers')
-rw-r--r-- | mail/importers/evolution-mbox-importer.c | 7 | ||||
-rw-r--r-- | mail/importers/evolution-outlook-importer.c | 5 | ||||
-rw-r--r-- | mail/importers/mail-importer.c | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/mail/importers/evolution-mbox-importer.c b/mail/importers/evolution-mbox-importer.c index 94b8403e28..78b6c7d27b 100644 --- a/mail/importers/evolution-mbox-importer.c +++ b/mail/importers/evolution-mbox-importer.c @@ -214,10 +214,13 @@ static gboolean load_file_fn(EvolutionImporter *eimporter, const char *filename, void *data) { MboxImporter *importer = data; - + char *utf8_filename; + + utf8_filename = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL); importer->dialog = gtk_message_dialog_new(NULL, 0/*GTK_DIALOG_NO_SEPARATOR*/, GTK_MESSAGE_INFO, GTK_BUTTONS_CANCEL, - _("Importing `%s'"), filename); + _("Importing `%s'"), utf8_filename); + g_free (utf8_filename); gtk_window_set_title (GTK_WINDOW (importer->dialog), _("Importing...")); importer->label = gtk_label_new (_("Please wait")); diff --git a/mail/importers/evolution-outlook-importer.c b/mail/importers/evolution-outlook-importer.c index 83f5c241a2..bf05c6316d 100644 --- a/mail/importers/evolution-outlook-importer.c +++ b/mail/importers/evolution-outlook-importer.c @@ -248,10 +248,13 @@ static gboolean load_file_fn(EvolutionImporter *eimporter, const char *filename, void *data) { OutlookImporter *importer = data; + char *utf8_filename; + utf8_filename = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL); importer->dialog = gtk_message_dialog_new(NULL, 0/*GTK_DIALOG_NO_SEPARATOR*/, GTK_MESSAGE_INFO, GTK_BUTTONS_CANCEL, - _("Importing `%s'"), filename); + _("Importing `%s'"), utf8_filename); + g_free (utf8_filename); gtk_window_set_title (GTK_WINDOW (importer->dialog), _("Importing...")); importer->label = gtk_label_new (_("Please wait")); diff --git a/mail/importers/mail-importer.c b/mail/importers/mail-importer.c index 937b53f937..080ce36491 100644 --- a/mail/importers/mail-importer.c +++ b/mail/importers/mail-importer.c @@ -350,14 +350,16 @@ import_folders_rec(struct _import_folders_data *m, const char *filepath, const c DIR *dir; struct dirent *d; struct stat st; - char *filefull, *foldersub, *uri; + char *filefull, *foldersub, *uri, utf8_filename; const char *folder; dir = opendir(filepath); if (dir == NULL) return; - camel_operation_start(NULL, _("Scanning %s"), filepath); + utf8_filename = g_filename_to_utf8 (filepath, -1, NULL, NULL, NULL); + camel_operation_start(NULL, _("Scanning %s"), utf8_filename); + g_free (utf8_filename); while ( (d=readdir(dir)) ) { if (d->d_name[0] == '.') |