[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 00/66] MIPS patches for 2021-01-07
From: |
Richard Henderson |
Subject: |
Re: [PULL 00/66] MIPS patches for 2021-01-07 |
Date: |
Fri, 8 Jan 2021 08:48:32 -1000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
On 1/8/21 5:22 AM, 罗勇刚(Yonggang Luo) wrote:
>>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
>>> 80: ordinal not in range(128)
> Can we always reading file in decodetree with utf8 encoding
> And convert all decodetree to utf8 encoding, and the problem should resolved.
> ```
> scripts/decodetree.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/scripts/decodetree.py b/scripts/decodetree.py
> index 47aa9caf6d..8c9eb365ac 100644
> --- a/scripts/decodetree.py
> +++ b/scripts/decodetree.py
> @@ -1304,7 +1304,7 @@ def main():
>
> for filename in args:
> input_file = filename
> - f = open(filename, 'r')
> + f = open(filename, 'r', encoding="utf8")
> parse_file(f, toppat)
> f.close()
>
> ```
Thanks. Would you like to send a formal patch?
r~
- [PULL 63/66] target/mips: Convert Rel6 LDL/LDR/SDL/SDR opcodes to decodetree, (continued)
- [PULL 63/66] target/mips: Convert Rel6 LDL/LDR/SDL/SDR opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/07
- [PULL 64/66] target/mips: Convert Rel6 LLD/SCD opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/07
- [PULL 65/66] target/mips: Convert Rel6 LL/SC opcodes to decodetree, Philippe Mathieu-Daudé, 2021/01/07
- [PULL 66/66] docs/system: Remove deprecated 'fulong2e' machine alias, Philippe Mathieu-Daudé, 2021/01/07
- Re: [PULL 00/66] MIPS patches for 2021-01-07, Philippe Mathieu-Daudé, 2021/01/07
- Re: [PULL 00/66] MIPS patches for 2021-01-07, no-reply, 2021/01/07
- Re: [PULL 00/66] MIPS patches for 2021-01-07, Peter Maydell, 2021/01/08