about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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()