summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorDariusz Pelowski <dariusz.pelowski@gmail.com>2015-11-26 17:59:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:02 +0000
commita88505b450bcd9a45e47ffa4655857cd29cb2416 (patch)
treea6b53aad7bc2583bf9525be8b967bec12032d508 /meta
parent8d784baf25861161a3bdc513e2f5236c0c19710d (diff)
downloadpoky-a88505b450bcd9a45e47ffa4655857cd29cb2416.tar.gz
lib/oe/terminal: use C locale when determining version
(From OE-Core rev: 5e5bf4f7e242494ed9c2cbc13bec7f21494db17c) Signed-off-by: Dariusz Pelowski <dariusz.pelowski@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/terminal.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/terminal.py b/meta/lib/oe/terminal.py
index a4a8c97022..1efc06d08e 100644
--- a/meta/lib/oe/terminal.py
+++ b/meta/lib/oe/terminal.py
@@ -244,7 +244,9 @@ def check_terminal_version(terminalName):
244 cmdversion = '%s --version' % terminalName 244 cmdversion = '%s --version' % terminalName
245 if terminalName.startswith('tmux'): 245 if terminalName.startswith('tmux'):
246 cmdversion = '%s -V' % terminalName 246 cmdversion = '%s -V' % terminalName
247 p = sub.Popen(['sh', '-c', cmdversion], stdout=sub.PIPE,stderr=sub.PIPE) 247 newenv = os.environ.copy()
248 newenv["LANG"] = "C"
249 p = sub.Popen(['sh', '-c', cmdversion], stdout=sub.PIPE, stderr=sub.PIPE, env=newenv)
248 out, err = p.communicate() 250 out, err = p.communicate()
249 ver_info = out.rstrip().split('\n') 251 ver_info = out.rstrip().split('\n')
250 except OSError as exc: 252 except OSError as exc: