aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorsimon.zheng <simon.zheng@sun.com>2006-06-29 17:59:03 +0800
committerSimon Zheng <simonz@src.gnome.org>2006-06-29 17:59:03 +0800
commit31517cc2cfaa7fa1cad05952773e0d9a65810a64 (patch)
tree6b242ebab2728269084a1a6d691e5074cb33229c /addressbook/gui
parent5a227c8206156d1b9babff1fbbb6d03c04eb3aac (diff)
downloadgsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar
gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar.gz
gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar.bz2
gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar.lz
gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar.xz
gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar.zst
gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.zip
Convert filename from glib encoding to utf8 encoding. Fixes Bug #339151
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 svn path=/trunk/; revision=32204
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c6
1 files changed, 4 insertions, 2 deletions
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,