[Reportbug-maint] Bug#848729: It is grave

Nis Martensen nis.martensen at web.de
Tue Feb 14 21:26:11 UTC 2017


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Handle-text-attachments-in-different-encodings.patch
Type: text/x-patch
Size: 1251 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20170214/420e8b28/attachment.bin>


More information about the Reportbug-maint mailing list