diff options
-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 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: |