aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-commands.c
diff options
context:
space:
mode:
authorZbigniew Chyla <cyba@gnome.pl>2001-12-04 01:15:12 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-12-04 01:15:12 +0800
commitb82997411cf3d5ee05fa690d766345f83a16ca94 (patch)
treed62a198852f75aab42e7afe9b08f618a22249419 /shell/e-shell-folder-commands.c
parent58f1e8808ad02102f1872d40a4239b565615c5bd (diff)
downloadgsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.tar
gsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.tar.gz
gsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.tar.bz2
gsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.tar.lz
gsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.tar.xz
gsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.tar.zst
gsoc2013-evolution-b82997411cf3d5ee05fa690d766345f83a16ca94.zip
Convert folder name to locale's encoding before using it as part of the
2001-11-15 Zbigniew Chyla <cyba@gnome.pl> * e-shell-folder-commands.c (e_shell_command_rename_folder): Convert folder name to locale's encoding before using it as part of the prompt. svn path=/trunk/; revision=14849
Diffstat (limited to 'shell/e-shell-folder-commands.c')
-rw-r--r--shell/e-shell-folder-commands.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/e-shell-folder-commands.c b/shell/e-shell-folder-commands.c
index 24c8dd2744..73ca33829f 100644
--- a/shell/e-shell-folder-commands.c
+++ b/shell/e-shell-folder-commands.c
@@ -510,7 +510,7 @@ e_shell_command_rename_folder (EShell *shell,
EStorageSet *storage_set;
EFolder *folder;
RenameCallbackData *callback_data;
- const char *old_name;
+ const char *old_name, *old_name_locale;
char *prompt;
char *new_name;
char *old_base_path;
@@ -533,7 +533,9 @@ e_shell_command_rename_folder (EShell *shell,
folders cannot be renamed anyway. */
old_name = g_basename (folder_path);
- prompt = g_strdup_printf (_("Rename the \"%s\" folder to:"), old_name);
+ old_name_locale = e_utf8_to_locale_string (old_name);
+ prompt = g_strdup_printf (_("Rename the \"%s\" folder to:"), old_name_locale);
+ g_free (old_name_locale);
while (1) {
const char *reason;