On 5 October 2010 19:32, Markus Korn <email address hidden> wrote:
> I think the fix in quickly should be as simple as using
>
> result, err = gpg_instance.communicate(key_generate.encode('utf-8'))
>
> in quicklyutils.py, line 298, (untested, just from reading the
> traceback)
That would probably fix it, though it's probably not the correct fix.
Strictly speaking the encoding ought to be determined by the locale
not hardcoded to utf8, but perhaps on Ubuntu it's reasonable to say it
must always be utf-8, even if the user wants something else on their
terminal? If you want to use non-ascii, you should use a unicode
locale.
On 5 October 2010 19:32, Markus Korn <email address hidden> wrote: communicate( key_generate. encode( 'utf-8' ))
> I think the fix in quickly should be as simple as using
>
> result, err = gpg_instance.
>
> in quicklyutils.py, line 298, (untested, just from reading the
> traceback)
That would probably fix it, though it's probably not the correct fix.
Strictly speaking the encoding ought to be determined by the locale
not hardcoded to utf8, but perhaps on Ubuntu it's reasonable to say it
must always be utf-8, even if the user wants something else on their
terminal? If you want to use non-ascii, you should use a unicode
locale.
--
Martin