diff --git a/tools/utils.py b/tools/utils.py index fb8869c29c..ad5db06fdf 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -104,7 +104,8 @@ def run_cmd(command, work_dir=None, chroot=None, redirect=False): try: process = Popen(command, stdout=PIPE, - stderr=STDOUT if redirect else PIPE, cwd=work_dir) + stderr=STDOUT if redirect else PIPE, cwd=work_dir, + universal_newlines=True) _stdout, _stderr = process.communicate() except OSError: print("[OS ERROR] Command: "+(' '.join(command)))