diff options
author | simon.zheng <simon.zheng@sun.com> | 2006-06-29 17:59:03 +0800 |
---|---|---|
committer | Simon Zheng <simonz@src.gnome.org> | 2006-06-29 17:59:03 +0800 |
commit | 31517cc2cfaa7fa1cad05952773e0d9a65810a64 (patch) | |
tree | 6b242ebab2728269084a1a6d691e5074cb33229c | |
parent | 5a227c8206156d1b9babff1fbbb6d03c04eb3aac (diff) | |
download | gsoc2013-evolution-31517cc2cfaa7fa1cad05952773e0d9a65810a64.tar.gz 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
-rw-r--r-- | addressbook/ChangeLog | 6 | ||||
-rw-r--r-- | addressbook/gui/widgets/eab-gui-util.c | 6 |
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, |