diff options
| author | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-22 22:59:16 +0200 |
|---|---|---|
| committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2021-06-29 11:28:08 +0200 |
| commit | 3e396b3782813d36d46195564cd0e111422bcaf5 (patch) | |
| tree | f315e990f71984745fcb8f22dac2f0e400fecadb /run_cross_test.py | |
| parent | 28175bbee2c111cf41b80c97bbadd7dbabaa8990 (diff) | |
| download | meson-3e396b3782813d36d46195564cd0e111422bcaf5.tar.gz | |
fix: Always explicitly set encoding for text files (fixes #8263)
Diffstat (limited to 'run_cross_test.py')
| -rwxr-xr-x | run_cross_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_cross_test.py b/run_cross_test.py index 5ce3e5528..bafdbb67d 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() |
