about summary refs log tree commit diff stats
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
parentbb16cc112613b23ad940d49df889b79c8061a337 (diff)
downloadranger-6d7f28a70d5e24ff7d67b6989fc2fa19453a4885.tar.gz
spawn: Force UTF-8 encoding
-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()
 
6' href='#n116'>116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189