diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2021-02-18 11:14:59 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-02-19 16:06:41 +0800 |
commit | cfc094161e3eec9ed787db1c762664ce9b3644ac (patch) | |
tree | 93dc35f90bb0a471847122924344e2dfb4b3ec38 | |
parent | cbab6a1cdfde2d97f70bcd57f114fb0fddcfe4e0 (diff) | |
download | riscv-gnu-toolchain-cfc094161e3eec9ed787db1c762664ce9b3644ac.zip riscv-gnu-toolchain-cfc094161e3eec9ed787db1c762664ce9b3644ac.tar.gz riscv-gnu-toolchain-cfc094161e3eec9ed787db1c762664ce9b3644ac.tar.bz2 |
Open summary file as UTF-8.
- Summary file of gcc testsuite contain some UTF-8 char.
-rwxr-xr-x | scripts/testsuite-filter | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/testsuite-filter b/scripts/testsuite-filter index 6812d33..654f3e7 100755 --- a/scripts/testsuite-filter +++ b/scripts/testsuite-filter @@ -140,7 +140,7 @@ def read_white_lists(white_list_files, is_gcc): def read_sum(sum_files): unexpected_results = dict() for sum_file in sum_files: - with open(sum_file) as f: + with open(sum_file, encoding='UTF-8') as f: content = f.readlines() current_target = None variations = [] |