diff options
author | Ismael González <ismgonval@gmail.com> | 2017-12-11 13:07:43 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-12-13 21:30:22 +0200 |
commit | d946b03496a41ebd878a6c40fa3fca1c74a1e654 (patch) | |
tree | 3da60dd2b013c82d6b2381434307ece0a57aaac9 | |
parent | 1a50fe45e8bbba9d74a15aa4b62804e60d079684 (diff) | |
download | meson-d946b03496a41ebd878a6c40fa3fca1c74a1e654.zip meson-d946b03496a41ebd878a6c40fa3fca1c74a1e654.tar.gz meson-d946b03496a41ebd878a6c40fa3fca1c74a1e654.tar.bz2 |
Use LC_ALL=C in CCompiler.get_library_dirs
Use LC_ALL=C in CCompiler.get_library_dirs to fix wrong results with non
English locales.
-rw-r--r-- | mesonbuild/compilers/c.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 9c1d1fc..8753c56 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -156,7 +156,9 @@ class CCompiler(Compiler): return ['-shared'] def get_library_dirs(self): - stdo = Popen_safe(self.exelist + ['--print-search-dirs'])[1] + env = os.environ.copy() + env['LC_ALL'] = 'C' + stdo = Popen_safe(self.exelist + ['--print-search-dirs'], env=env)[1] for line in stdo.split('\n'): if line.startswith('libraries:'): libstr = line.split('=', 1)[1] |