[Reportbug-maint] Bug#606171: reportbug crashing on non-ascii characters

Sandro Tosi morph at debian.org
Sun Dec 26 21:40:31 UTC 2010


Hi Manuel,

On Tue, Dec 7, 2010 at 02:51, Manuel Pégourié-Gonnard <mpg at elzevir.fr> wrote:
> Package: reportbug
> Version: 4.12.6
>
> Hi,
>
> I was trying to report a bug against munin-node, when:
>
>> mpg at thue:~% reportbug -q --template -T none -s none -S normal -b --list-cc none -q munin-node
>> *** Welcome to reportbug.  Use ? for help at prompts. ***
>> Detected character set: UTF-8
>> Please change your locale if this is incorrect.
>>
>> Using '"Manuel Pegourie-Gonnard" <mpg at elzevir.fr>' as your from address.
>> Getting status for munin-node...
>> Verifying package integrity...
>> Will send report to Debian (per lsb_release).
>> Maintainer for munin-node is 'Munin Debian Maintainers
>> <munin-deb-maint at linpro.no>'.
>> Looking up dependencies of munin-node...
>> Getting changed configuration files...
>> Traceback (most recent call last):
>>   File "/usr/bin/reportbug", line 2098, in <module>
>>     main()
>>   File "/usr/bin/reportbug", line 1045, in main
>>     return iface.user_interface()
>>   File "/usr/bin/reportbug", line 1733, in user_interface
>>     conftext = conftext + u'%s %s\n' % (f, confinfo[f])
>> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 32:
>> ordinal
>> not in range(128)

do you really have this char

$ python -c "print u'\xc3'"
Ã

in a config file, or a path to a conffile? :)

> I'm using testing (squeeze), kernel 2.6.32-5-686, python 2.6.6-3+squeeze1 and
> python-reportbug 4.12.6. My default locale is fr_FR.utf8.
>
> I first thought the problem was due to non-ascii character in my user name, so I
> tried to remove the accented characters from my name in ~/.reportbugrc, but to
> no avail.

No, the crash happens where the code is enlisting the config files
(<path> + <conffile name>), so it should be one of the munin-node
conffile: can you confirm?

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