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): 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: |