[Reportbug-maint] Bug#857794: reportbug: crash when encountering some non-ASCII characters

Evgeni Golov evgeni at debian.org
Sat Mar 18 19:24:12 UTC 2017

Hi Dima,

> Hi. I just tried to send an unblock, and reportbug crashed. Session:
>     dima at scrawny:~$ sudo apt install reportbug
>     ...
>     Please enter the name of the package: geda-gaf
>     Checking status database...
>     Traceback (most recent call last):
>         return codecs.ascii_decode(input, self.errors)[0]
>     UnicodeDecodeError: 'ascii' codec can't decode byte 0xd8 in position 327: ordinal not in range(128)

The package has "أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>" as uploader.
And that is not parsable by your non Unicode environment.

> Presumably there's some non-ascii something somewhere that's tripping it
> up. It is 100% reproducible, and as you can see I'm using the latest
> available reportbug. Thanks.

I can reproduce it with LC_ALL=C, but not with C.UTF-8.

I would argue that reportbug can't do anything here, as your environment just can't display the string correctly.

More information about the Reportbug-maint mailing list