[Reportbug-maint] Bug#779200: reportbug: did not show #777125, proably due to encoding issues

Sandro Tosi morph at debian.org
Wed Apr 15 20:20:54 UTC 2015


Hello Hermann,
thanks for follow up so quickly!

On Tue, Apr 14, 2015 at 2:22 PM, Hermann Lauer
<Hermann.Lauer at iwr.uni-heidelberg.de> wrote:
>> this traceback is incomplete, please report the full (unaltered) traceback.
>
> sorry, missed obviously the end during copy & paste:
>
> Traceback (most recent call last):
>   File "/usr/bin/reportbug", line 2211, in <module>
>     main()
>   File "/usr/bin/reportbug", line 1081, in main
>     return iface.user_interface()
>   File "/usr/bin/reportbug", line 1363, in user_interface
>     mbox_reader_cmd=self.options.mbox_reader_cmd)
>   File "/usr/lib/python2.7/dist-packages/reportbug/ui/text_ui.py", line 441, in show_report
>     fd.write(text)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\u25cf' in position 542: ordinal not in range(128)

I even tried to set LC_ALL=C but I can't replicate this issue: with
LC_ALL=C I got some weird chars next to "nslcd.service - LSB: LDAP
connection daemon" instead of the dot that should be there with UTF-8
encoding.

So, can you try to edit this file (I know it's bad!)
/usr/lib/python2.7/dist-packages/reportbug/ui/text_ui.py and change

fd.write(text)

into

fd.write(text.encode('utf-8'))

and tell me if this fixes the problem?

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi



More information about the Reportbug-maint mailing list