Web lists-archives.com

Re: bugreport - reportbug 7.1.7 on Debian 9.1




Hi,

On Tue, 5 Dec 2017 11:34:57 +0100
Sophie Loewenthal <sophie@xxxxxxxxxxxx> wrote:

> Hi,
> 
> Submitting a bug report via reportbug 7.1.7 programme produced:
> 
> 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 1225, in user_interface
>     main()
>   File "/usr/bin/reportbug", line 1107, in main
>     return iface.user_interface()
>   File "/usr/bin/reportbug", line 2150, in user_interface
>     package, severity, mode, charset=charset, tags=tags)
>   File "/usr/bin/reportbug", line 182, in handle_editing
>     editor, charset)
>   File "/usr/lib/python3/dist-packages/reportbug/ui/text_ui.py", line
> 1064, in spawn_editor newmessage = open(filename).read()
>   File "/usr/lib/python3.5/encodings/ascii.py", line 26, in decode
>     return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
> 1780: ordinal not in range(128)

not sure, but maybe this happens because there is something misconfigured
with your system's locale settings.
The reportbug UI tries to guess the system encoding and if nothing good
is detected falls back to "us-ascii", which seems to be what happens
here. When then some non-ascii character is used (here apparently "â") it
cannot be decoded and causes the above error.
The code snippet reportbug uses for the encoding detection can be run as
a one-line command, which produces here:

$ python3 -c "import locale; print(locale.nl_langinfo(locale.CODESET))"
UTF-8

If you get "us-ascii" instead, you might want to check your locale
settings.

Best regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Uncontrolled power will turn even saints into savages.  And we can all
be counted on to live down to our lowest impulses.
		-- Parmen, "Plato's Stepchildren", stardate 5784.3