aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2018-03-20 17:03:32 +0300
committermakise-homura <akemi_homura@kurisa.ch>2018-03-20 17:03:32 +0300
commit3b254c6e49a406235a2c82efa3698bacb0995a35 (patch)
tree3b59aa076442348550fdfa9e12ca3ef21c54a98b /mesonbuild/compilers/compilers.py
parent08bd07f860081b9545ca4ef4eb7f9684e298f5a6 (diff)
downloadmeson-3b254c6e49a406235a2c82efa3698bacb0995a35.zip
meson-3b254c6e49a406235a2c82efa3698bacb0995a35.tar.gz
meson-3b254c6e49a406235a2c82efa3698bacb0995a35.tar.bz2
Fixed failure if compiler messages is not in UTF-8
For example, Elbrus lcc does output in KOI8-R, if LC_ALL=C, and there is no English counterpart for original Russian message.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 2e6ed7e..c072bb6 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -971,7 +971,7 @@ def gnulike_default_include_dirs(compiler, lang):
stdout=subprocess.PIPE,
env=env
)
- stderr = p.stderr.read().decode('utf-8')
+ stderr = p.stderr.read().decode('utf-8', errors='replace')
parse_state = 0
paths = []
for line in stderr.split('\n'):