about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2021-09-01 17:53:16 +0200
committertoonn <toonn@toonn.io>2021-09-01 17:57:15 +0200
commit6d7f28a70d5e24ff7d67b6989fc2fa19453a4885 (patch)
treef6e1f5ea0dd4f9f82264141ab2917a05935b6f74 /ranger
parentbb16cc112613b23ad940d49df889b79c8061a337 (diff)
downloadranger-6d7f28a70d5e24ff7d67b6989fc2fa19453a4885.tar.gz
spawn: Force UTF-8 encoding
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/spawn.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/spawn.py b/ranger/ext/spawn.py
index 57151c84..4bd0b499 100644
--- a/ranger/ext/spawn.py
+++ b/ranger/ext/spawn.py
@@ -35,7 +35,7 @@ def check_output(popenargs, **kwargs):
         with Popen23(popenargs, **kwargs) as process:
             stdout, _ = process.communicate()
     else:
-        with open(devnull, mode='w') as fd_devnull:
+        with open(devnull, mode='w', encoding="utf-8") as fd_devnull:
             with Popen23(popenargs, stderr=fd_devnull, **kwargs) as process:
                 stdout, _ = process.communicate()