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
commitcbf139e60e432a628ac82030126b9362435f44a9 (patch)
treece8c986a66ec4e2b0b6166e689c603248031d88f /ranger
parent6d7f28a70d5e24ff7d67b6989fc2fa19453a4885 (diff)
downloadranger-cbf139e60e432a628ac82030126b9362435f44a9.tar.gz
vcs: Force UTF-8 encoding
Diffstat (limited to 'ranger')
-rw-r--r--ranger/ext/vcs/vcs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/vcs/vcs.py b/ranger/ext/vcs/vcs.py
index eb542fd1..5619ed19 100644
--- a/ranger/ext/vcs/vcs.py
+++ b/ranger/ext/vcs/vcs.py
@@ -130,7 +130,7 @@ class Vcs(object):  # pylint: disable=too-many-instance-attributes
                     return output[:-1]
                 return output
             else:
-                with open(os.devnull, mode='w') as fd_devnull:
+                with open(os.devnull, mode='w', encoding="utf-8") as fd_devnull:
                     subprocess.check_call(cmd, cwd=path, stdout=fd_devnull, stderr=fd_devnull)
                 return None
         except (subprocess.CalledProcessError, OSError):