[Reportbug-maint] Bug#642096: Unable to create configuration file (UnicodeEncodeError)

Sandro Tosi morph at debian.org
Mon Oct 31 22:09:40 UTC 2011


Hello,

On Mon, Sep 19, 2011 at 15:10, Torquil Macdonald Sørensen
<torquil at gmail.com> wrote:
> tmac at asus:~$ reportbug
> Welcome to reportbug! Since it looks like this is the first time you have
> used reportbug, we are configuring its behavior. These settings will be
> saved to the file "/home/tmac/.reportbugrc",
> which you will be free to edit further.
> Please choose the default operating mode for reportbug.
>
> 1 novice    Offer simple prompts, bypassing technical questions.
>
> 2 standard  Offer more extensive prompts, including asking about things that
> a moderately sophisticated user would be expected to know about Debian.
>
> 3 advanced  Like standard, but assumes you know a bit more about Debian,
> including "incoming".
>
> 4 expert    Bypass most handholding measures and preliminary triage
> routines. This mode should not be used by people unfamiliar with Debian's
> policies and operating procedures.
>
> Select mode: [novice] 3
> Will reportbug often have direct Internet access? (You should answer yes to
> this question unless you know what you are doing and plan to check whether
> duplicate reports have been filed via
> some other channel.) [Y|n|q|?]?
> What real name should be used for sending bug reports?
> [Torquil Macdonald Sørensen]>

Do you run a full UTF-8 env?

> Traceback (most recent call last):
>  File "/usr/bin/reportbug", line 2186, in <module>
>    main()
>  File "/usr/bin/reportbug", line 1073, in main
>    return iface.user_interface()
>  File "/usr/bin/reportbug", line 1189, in user_interface
>    offer_configuration(self.options)
>  File "/usr/bin/reportbug", line 573, in offer_configuration
>    realname = realname.decode(charset, 'replace')

you could try to replace the line above with

realname = realname.encode('utf-8').decode(charset, 'replace')

and let me know if it works better (and it maintains the unicode
character correctly recorded)

>  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
>    return codecs.utf_8_decode(input, errors, True)
> UnicodeEncodeError: 'ascii' codec can't encode character u'\xf8' in position
> 19: ordinal not in range(128)

Do you run a full UTF-8 env? I can't replicate this bug, even
cut&pasting your name.

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