diff options
author | Ignacio Etcheverry <neikeq@users.noreply.github.com> | 2018-07-04 16:09:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-04 16:09:42 +0200 |
commit | f8daa080f297523d641f176d9b07b7d85fb0f772 (patch) | |
tree | a1685f88e0de4ddb06d6c275c883e803742b490f /modules/mono | |
parent | 858d0b68870176564fc17a32e0e275b182780bb1 (diff) | |
parent | 33fd0f762d23273db5058c1b624bc343f1686435 (diff) |
Merge pull request #19965 from neikeq/issue-19961
Mono: Fix build script not decoding process utf-8 output
Diffstat (limited to 'modules/mono')
-rw-r--r-- | modules/mono/config.py | 5 |
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): |