#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)
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;
}
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;
}