Don't modify file name in file operation.

The problem: if I copy or move file with invalid UTF-8 symbols
in name to another directory (e.g. simply F5 Enter F6 Enter
to copy/move to the other panel), the filename gets mangled,
invalid UTF-8 characters are replaced by literal question marks.

Now the copy/move operation leaves the filename unchanged,
even if it is invalid in the locale mc's using for display.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2009-10-19 14:49:46 +04:00
parent 0cd390fd50
commit c7636e36bb

View File

@ -162,7 +162,6 @@ transform_source (FileOpContext *ctx, const char *source)
*q = ' ';
fnsource = (char *) x_basename (s);
str_fix_string (fnsource);
if (mc_search_run (ctx->search_handle, fnsource, 0, strlen (fnsource), NULL))
q = mc_search_prepare_replace_str2 (ctx->search_handle, ctx->dest_mask);