+Unicode/UTF8 locale conversion support for 'G_BROKEN_FILENAMES' etc.
[captive.git] / src / client / cmdline / cmd_rm.c
index bf7e847..1c9e5ba 100644 (file)
@@ -27,6 +27,7 @@
 #include "cmd_rm.h"    /* self */
 #include "cmd_cd.h"    /* for cmdline_path_from_cwd() */
 #include "main.h"
+#include "utf8.h"
 
 
 GQuark cmdline_cmd_rm_error_quark(void)
@@ -62,7 +63,7 @@ const gchar *targetfile;
                        GNOME_VFS_OPEN_NONE))) {        /* mode */
                err_cleanup(errp);
                g_set_error(errp,CMDLINE_CMD_RM_ERROR,CMDLINE_CMD_RM_ERROR_CANNOT_CREATE_REMOVAL_FILE,
-                               _("Cannot open file for removal: %s"),targetfile);
+                               _("Cannot open file for removal: %s"),CMD_LOCALE_FROM_UTF8_ALLOCA(targetfile));
                return;
                }
 
@@ -70,7 +71,7 @@ const gchar *targetfile;
                        captive_file_object))) {        /* captive_file_object */
                err_cleanup(errp);
                g_set_error(errp,CMDLINE_CMD_RM_ERROR,CMDLINE_CMD_RM_ERROR_CANNOT_SET_FILE_REMOVAL,
-                               _("Cannot set file removal state: %s"),targetfile);
+                               _("Cannot set file removal state: %s"),CMD_LOCALE_FROM_UTF8_ALLOCA(targetfile));
                goto err_unref;
                }