[Reportbug-maint] Bug#848729: It is grave
Ondřej Surý
ondrej at sury.org
Wed Feb 22 15:32:09 UTC 2017
Hi Nis,
indeed, the attached patch fixes sending unblock emails (where there's
at least always my name in the debdiffs and changelogs).
Cheers,
--
Ondřej Surý <ondrej at sury.org>
Knot DNS (https://www.knot-dns.cz/) – a high-performance DNS server
Knot Resolver (https://www.knot-resolver.cz/) – secure, privacy-aware,
fast DNS(SEC) resolver
Vše pro chleba (https://vseprochleba.cz) – Mouky ze mlýna a potřeby pro
pečení chleba všeho druhu
On Tue, Feb 14, 2017, at 22:26, Nis Martensen wrote:
> Hi Ondřej,
>
> Ondřej Surý wrote:
> > As this bug is preventing me from filling any bugs at all and it fails
> > only after I press "Y", so the content of the lengthy unblock bug is
> > gone... and this puts my laptop in danger of my rage :).
> >
> > Traceback (most recent call last):
> > File "/usr/bin/reportbug", line 2234, in <module>
> > main()
> > File "/usr/bin/reportbug", line 1107, in main
> > return iface.user_interface()
> > File "/usr/bin/reportbug", line 2225, in user_interface
> > self.options.envelopefrom)
> > File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 209,
> > in send_report
> > (message, failed) = mime_attach(body, attachments, charset,
> > body_charset)
> > File "/usr/lib/python3/dist-packages/reportbug/submit.py", line 157,
> > in mime_attach
> > part = MIMEText(fp.read())
> > File "/usr/lib/python3.5/codecs.py", line 321, in decode
> > (result, consumed) = self._buffer_decode(data, self.errors, final)
> > UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe5 in position
> > 296505: invalid continuation byte
> >
> > and my locale is:
> >
> > $ locale
> > LANG=en_DK.UTF-8
>
> Your Traceback is different from the others. This bug is not fixed yet.
>
> Did you try to attach a text(plain/html/etc) file in a different
> encoding than UTF-8? As a workaround, you could gzip that file.
>
> Attached a patch that should fix the problem.
> Email had 1 attachment:
> + 0001-Handle-text-attachments-in-different-encodings.patch
> 1k (text/x-patch)
More information about the Reportbug-maint
mailing list