* gcc-commit-mklog fails
@ 2022-11-17 1:30 Zopolis0
2022-11-17 9:08 ` Jonathan Wakely
2022-11-17 9:57 ` Stefan Ring
0 siblings, 2 replies; 5+ messages in thread
From: Zopolis0 @ 2022-11-17 1:30 UTC (permalink / raw)
To: gcc-help
I was trying to add a changelog to my commits, starting with e4f70d4
on my msterstable branch
(https://github.com/Zopolis4/gcj/commits/msterstable).
I used an interactive rebase to get back to that commit and then soft
reset it, and attempted to run git gcc-commit-mklog. This is the error
I got:
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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc-commit-mklog fails
2022-11-17 1:30 gcc-commit-mklog fails Zopolis0
@ 2022-11-17 9:08 ` Jonathan Wakely
2022-11-17 9:09 ` Jonathan Wakely
2022-11-17 9:57 ` Stefan Ring
1 sibling, 1 reply; 5+ messages in thread
From: Jonathan Wakely @ 2022-11-17 9:08 UTC (permalink / raw)
To: Zopolis0; +Cc: gcc-help
[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]
On Thu, 17 Nov 2022, 01:31 Zopolis0 via Gcc-help, <gcc-help@gcc.gnu.org>
wrote:
> I was trying to add a changelog to my commits, starting with e4f70d4
> on my msterstable branch
> (https://github.com/Zopolis4/gcj/commits/msterstable).
>
> I used an interactive rebase to get back to that commit and then soft
> reset it, and attempted to run git gcc-commit-mklog. This is the error
> I got:
>
> 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?
>
You can just commit without using the mklog utility. Write the commit msg
by hand.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc-commit-mklog fails
2022-11-17 9:08 ` Jonathan Wakely
@ 2022-11-17 9:09 ` Jonathan Wakely
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2022-11-17 9:09 UTC (permalink / raw)
To: Zopolis0; +Cc: gcc-help
[-- Attachment #1: Type: text/plain, Size: 1666 bytes --]
On Thu, 17 Nov 2022, 09:08 Jonathan Wakely, <jwakely.gcc@gmail.com> wrote:
>
>
> On Thu, 17 Nov 2022, 01:31 Zopolis0 via Gcc-help, <gcc-help@gcc.gnu.org>
> wrote:
>
>> I was trying to add a changelog to my commits, starting with e4f70d4
>> on my msterstable branch
>> (https://github.com/Zopolis4/gcj/commits/msterstable).
>>
>> I used an interactive rebase to get back to that commit and then soft
>> reset it, and attempted to run git gcc-commit-mklog. This is the error
>> I got:
>>
>> 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?
>>
>
>
> You can just commit without using the mklog utility. Write the commit msg
> by hand.
>
You should probably also figure out why you have invalid utf-8 in the diff,
but that's up to you.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc-commit-mklog fails
2022-11-17 1:30 gcc-commit-mklog fails Zopolis0
2022-11-17 9:08 ` Jonathan Wakely
@ 2022-11-17 9:57 ` Stefan Ring
2022-11-17 10:35 ` Jonathan Wakely
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Ring @ 2022-11-17 9:57 UTC (permalink / raw)
To: gcc-help
On Thu, Nov 17, 2022 at 2:31 AM Zopolis0 via Gcc-help
<gcc-help@gcc.gnu.org> 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?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gcc-commit-mklog fails
2022-11-17 9:57 ` Stefan Ring
@ 2022-11-17 10:35 ` Jonathan Wakely
0 siblings, 0 replies; 5+ messages in thread
From: Jonathan Wakely @ 2022-11-17 10:35 UTC (permalink / raw)
To: Stefan Ring; +Cc: gcc-help
On Thu, 17 Nov 2022 at 09:59, Stefan Ring via Gcc-help
<gcc-help@gcc.gnu.org> wrote:
>
> On Thu, Nov 17, 2022 at 2:31 AM Zopolis0 via Gcc-help
> <gcc-help@gcc.gnu.org> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-11-17 10:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-17 1:30 gcc-commit-mklog fails Zopolis0
2022-11-17 9:08 ` Jonathan Wakely
2022-11-17 9:09 ` Jonathan Wakely
2022-11-17 9:57 ` Stefan Ring
2022-11-17 10:35 ` Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).