From 2d972c91622ad7913f2d8a50feaac58b66c69eb4 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Mon, 4 May 2020 16:50:25 +1000 Subject: Add a better check for crash during bisection. (#3758) --- infra/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'infra/utils.py') diff --git a/infra/utils.py b/infra/utils.py index fa5aed20..17cc2379 100644 --- a/infra/utils.py +++ b/infra/utils.py @@ -55,8 +55,8 @@ def execute(command, location=None, check_result=False): stderr=subprocess.PIPE, cwd=location) out, err = process.communicate() - out = out.decode('ascii') - err = err.decode('ascii') + out = out.decode('utf-8', errors='ignore') + err = err.decode('utf-8', errors='ignore') if err: logging.debug('Stderr of command \'%s\' is %s.', ' '.join(command), err) if check_result and process.returncode: -- cgit v1.2.3