From 26060b2cfe835e208d29e12d70a1a8eee70b3c14 Mon Sep 17 00:00:00 2001 From: rathann Date: Fri, 31 Jul 2020 17:03:41 +0000 Subject: Specify UTF-8 encoding instead of relying on locale default (#3009) Current locale may not be UTF-8, which makes the spec/names.wast test fail. Fixes issue #3003. --- scripts/test/support.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/test/support.py') diff --git a/scripts/test/support.py b/scripts/test/support.py index 6eee79910..8e4ef85e8 100644 --- a/scripts/test/support.py +++ b/scripts/test/support.py @@ -169,7 +169,7 @@ def run_command(cmd, expected_status=0, stderr=None, "Can't redirect stderr if using expected_err" stderr = subprocess.PIPE print('executing: ', ' '.join(cmd)) - proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=stderr, universal_newlines=True) + proc = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=stderr, universal_newlines=True, encoding='UTF-8') out, err = proc.communicate() code = proc.returncode if expected_status is not None and code != expected_status: -- cgit v1.2.3