On Thu, 17 Nov 2022 at 09:59, Stefan Ring via Gcc-help <gcc-help@xxxxxxxxxxx> wrote: > > On Thu, Nov 17, 2022 at 2:31 AM Zopolis0 via Gcc-help > <gcc-help@xxxxxxxxxxx> wrote: > > > > Traceback (most recent call last): > > File "/home/zopolis4/gcj/contrib/mklog.py", line 368, in <module> > > output = generate_changelog(data, args.no_functions, > > File "/home/zopolis4/gcj/contrib/mklog.py", line 165, in generate_changelog > > diff = PatchSet(data) > > File "/usr/lib/python3/dist-packages/unidiff/patch.py", line 460, in __init__ > > self._parse(data, encoding=encoding, metadata_only=metadata_only) > > File "/usr/lib/python3/dist-packages/unidiff/patch.py", line 548, in _parse > > current_file._parse_hunk(line, diff, encoding, metadata_only) > > File "/usr/lib/python3/dist-packages/unidiff/patch.py", line 282, in > > _parse_hunk > > for diff_line_no, line in diff: > > File "/usr/lib/python3.10/codecs.py", line 322, in decode > > (result, consumed) = self._buffer_decode(data, self.errors, final) > > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa0 in position > > 3125: invalid start byte > > > > What should I do? > > Is it possible that the script was supposed to be executed by Python 2? No. It is very clear about that: #!/usr/bin/env python3