aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog6
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 8ec642993b..b878b58aa4 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,9 @@
+2006-06-29 simon.zheng <simon.zheng@sun.com>
+
+ * gui/widgets/eab-gui-util.c: (file_exists): Convert filename
+ from glib encoding to utf8 encoding.
+ Fixes Bug #339151
+
2006-06-27 Devashish Sharma <sdevashish@novell.com>
* gui/widgets/eab-gui-util.c (do_delete) :Fix for
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,