From 31517cc2cfaa7fa1cad05952773e0d9a65810a64 Mon Sep 17 00:00:00 2001 From: "simon.zheng" Date: Thu, 29 Jun 2006 09:59:03 +0000 Subject: Convert filename from glib encoding to utf8 encoding. Fixes Bug #339151 2006-06-29 simon.zheng * gui/widgets/eab-gui-util.c: (file_exists): Convert filename from glib encoding to utf8 encoding. Fixes Bug #339151 svn path=/trunk/; revision=32204 --- addressbook/gui/widgets/eab-gui-util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c index 557699796b..98d94a23f5 100644 --- a/addressbook/gui/widgets/eab-gui-util.c +++ b/addressbook/gui/widgets/eab-gui-util.c @@ -313,13 +313,15 @@ file_exists(GtkWindow *window, const char *filename) { GtkWidget *dialog; gint response; + char * utf8_filename; + utf8_filename = g_filename_to_utf8 (filename, -1, NULL, NULL, NULL); dialog = gtk_message_dialog_new (window, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, - _("%s already exists\nDo you want to overwrite it?"), filename); - + _("%s already exists\nDo you want to overwrite it?"), utf8_filename); + g_free (utf8_filename); gtk_dialog_add_buttons (GTK_DIALOG (dialog), GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, _("Overwrite"), GTK_RESPONSE_ACCEPT, -- cgit v1.2.3