mirror of
https://github.com/MidnightCommander/mc
synced 2025-04-02 13:12:53 +03:00
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:
parent
0cd390fd50
commit
c7636e36bb
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user