From 3e396b3782813d36d46195564cd0e111422bcaf5 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Tue, 22 Jun 2021 22:59:16 +0200 Subject: fix: Always explicitly set encoding for text files (fixes #8263) --- run_cross_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_cross_test.py') diff --git a/run_cross_test.py b/run_cross_test.py index 5ce3e55..bafdbb6 100755 --- a/run_cross_test.py +++ b/run_cross_test.py @@ -49,7 +49,7 @@ def main(): options = parser.parse_args() cf_path = Path(options.cross_file) try: - data = json.loads(cf_path.read_text()) + data = json.loads(cf_path.read_text(encoding='utf-8')) real_cf = cf_path.resolve().parent / data['file'] assert real_cf.exists() env = os.environ.copy() -- cgit v1.1