diff options
author | Dariusz Pelowski <dariusz.pelowski@gmail.com> | 2015-11-26 17:59:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-01 21:30:53 +0000 |
commit | 5e5bf4f7e242494ed9c2cbc13bec7f21494db17c (patch) | |
tree | 7f85a2d8eda8f433b9a248ffb96899da274fa282 /meta | |
parent | 6d2074d477596971dc52027dd87b02af7f39138d (diff) | |
download | openembedded-core-contrib-5e5bf4f7e242494ed9c2cbc13bec7f21494db17c.tar.gz |
lib/oe/terminal: use C locale when determining version
Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/lib/oe/terminal.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py index a4a8c970222..1efc06d08e6 100644 --- a/meta/lib/oe/terminal.py +++ b/meta/lib/oe/terminal.py @@ -244,7 +244,9 @@ def check_terminal_version(terminalName): cmdversion = '%s --version' % terminalName if terminalName.startswith('tmux'): cmdversion = '%s -V' % terminalName - p = sub.Popen(['sh', '-c', cmdversion], stdout=sub.PIPE,stderr=sub.PIPE) + newenv = os.environ.copy() + newenv["LANG"] = "C" + p = sub.Popen(['sh', '-c', cmdversion], stdout=sub.PIPE, stderr=sub.PIPE, env=newenv) out, err = p.communicate() ver_info = out.rstrip().split('\n') except OSError as exc: |