diff options
-rwxr-xr-x | ranger/config/commands.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py index 55dd9cd1..94921f8b 100755 --- a/ranger/config/commands.py +++ b/ranger/config/commands.py @@ -1078,7 +1078,8 @@ class bulkrename(Command): listpath = listfile.name if py3: - listfile.write("\n".join(filenames).encode("utf-8")) + listfile.write("\n".join(filenames).encode(encoding="utf-8", + errors="surrogatepass")) else: listfile.write("\n".join(filenames)) listfile.close() |