summaryrefslogtreecommitdiff
path: root/unittests/machinefiletests.py
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/machinefiletests.py')
-rw-r--r--unittests/machinefiletests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/machinefiletests.py b/unittests/machinefiletests.py
index 5ff862cdc..8de0c602d 100644
--- a/unittests/machinefiletests.py
+++ b/unittests/machinefiletests.py
@@ -50,7 +50,7 @@ def is_real_gnu_compiler(path):
'''
if not path:
return False
- out = subprocess.check_output([path, '--version'], universal_newlines=True, stderr=subprocess.STDOUT)
+ out = subprocess.check_output([path, '--version'], encoding='utf-8', universal_newlines=True, stderr=subprocess.STDOUT)
return 'Free Software Foundation' in out
cross_dir = Path(__file__).parent.parent / 'cross'