diff options
author | toonn <toonn@toonn.io> | 2021-09-01 17:53:16 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2021-09-01 17:57:15 +0200 |
commit | 7c7f3902f61e41f0367643d2eaca9f3ca49d370e (patch) | |
tree | 96f61cc96807ec5a873d0c499b4f782345a39bb9 | |
parent | 9bd3ccdda523168589d7ee4d5c1a9d4610371791 (diff) | |
download | ranger-7c7f3902f61e41f0367643d2eaca9f3ca49d370e.tar.gz |
runner: Force UTF-8 encoding
-rw-r--r-- | ranger/core/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/core/runner.py b/ranger/core/runner.py index ded64b5d..1d2b91f7 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -194,8 +194,8 @@ class Runner(object): # pylint: disable=too-few-public-methods if 's' in context.flags: # Using a with-statement for these is inconvenient. # pylint: disable=consider-using-with - devnull_writable = open(os.devnull, 'w') - devnull_readable = open(os.devnull, 'r') + devnull_writable = open(os.devnull, 'w', encoding="utf-8") + devnull_readable = open(os.devnull, 'r', encoding="utf-8") for key in ('stdout', 'stderr'): popen_kws[key] = devnull_writable toggle_ui = False |