[Reportbug-maint] Bug#539736: reportbug: --subject does not accept non-ASCII characters

Sandro Tosi morph at debian.org
Mon Aug 3 11:24:43 UTC 2009


2009/8/3 Jakub Wilk <ubanus at users.sf.net>:
> Package: reportbug
> Version: 4.5
> Severity: normal
>
> $ reportbug reportbug -s 'żółw'
> *** Welcome to reportbug.  Use ? for help at prompts. ***
> Detected character set: UTF-8
> [snip]
> Traceback (most recent call last):
>  File "/home/jwilk/bin/reportbug", line 12, in <module>
>    execfile('/usr/bin/reportbug')
>  File "/usr/bin/reportbug", line 1888, in <module>
>    main()
>  File "/usr/bin/reportbug", line 905, in main
>    return iface.user_interface()
>  File "/usr/bin/reportbug", line 1820, in user_interface
>    message = u"Subject: %s\n%s" % (subject, message)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 0:
> ordinal not in range(128)

works fine here:

$ reportbug reportbug -s 'żółw' -O
*** Welcome to reportbug.  Use ? for help at prompts. ***
Detected character set: UTF-8
Please change your locale if this is incorrect.

Using 'Sandro Tosi <morph at debian.org>' as your from address.
Getting status for reportbug...
Verifying package integrity...
Will send report to Debian (per lsb_release).
Maintainer for reportbug is 'Reportbug Maintainers
<reportbug-maint at lists.alioth.debian.org>'.
Looking up dependencies of reportbug...


Enter any additional addresses this report should be sent to; press
ENTER after each address. Press ENTER on a blank line to continue.
>
reportbug: exiting due to user interrupt.
morph at sandrotosi:~$ reportbug --version
reportbug 4.5

I suspect something related to locale:

$ echo $LANG
en_US.UTF-8

Not sure to close it or not, for the time being I left it open :)

Cheers,
-- 
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