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 | cbf139e60e432a628ac82030126b9362435f44a9 (patch) | |
tree | ce8c986a66ec4e2b0b6166e689c603248031d88f /ranger | |
parent | 6d7f28a70d5e24ff7d67b6989fc2fa19453a4885 (diff) | |
download | ranger-cbf139e60e432a628ac82030126b9362435f44a9.tar.gz |
vcs: Force UTF-8 encoding
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/ext/vcs/vcs.py | 2 |
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): |