summaryrefslogtreecommitdiffstats
path: root/modules/mono/config.py
diff options
context:
space:
mode:
authorIgnacio Etcheverry <ignalfonsore@gmail.com>2018-07-04 16:05:28 +0200
committerIgnacio Etcheverry <ignalfonsore@gmail.com>2018-07-04 16:07:52 +0200
commit33fd0f762d23273db5058c1b624bc343f1686435 (patch)
tree2e210225f24404ffe21591c3912f31ae6009b363 /modules/mono/config.py
parentac9e736b065f0ec30f3b1af19c41b7cd3a0371e6 (diff)
downloadredot-engine-33fd0f762d23273db5058c1b624bc343f1686435.tar.gz
Mono: Fix build script not decoding process utf-8 output
Diffstat (limited to 'modules/mono/config.py')
-rw-r--r--modules/mono/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/mono/config.py b/modules/mono/config.py
index 82a8234abb..9a000a2a72 100644
--- a/modules/mono/config.py
+++ b/modules/mono/config.py
@@ -276,7 +276,10 @@ def pkgconfig_try_find_mono_version():
def mono_root_try_find_mono_version(mono_root):
- first_line = subprocess.check_output([os.path.join(mono_root, 'bin', 'mono'), '--version']).splitlines()[0]
+ from compat import decode_utf8
+
+ output = subprocess.check_output([os.path.join(mono_root, 'bin', 'mono'), '--version'])
+ first_line = decode_utf8(output.splitlines()[0])
try:
return LooseVersion(first_line.split()[len('Mono JIT compiler version'.split())])
except (ValueError, IndexError):