Control: clone -1
Control: reassign -1 python3-click 6.6-1

On 2016-12-17 15:17:26, Joey Hess wrote:
> Package: magic-wormhole
> Version: 0.8.1-2
> Severity: normal
>
>   joey@darkstar:~>LANG=C wormhole receive
>   Traceback (most recent call last):
>     File "/usr/bin/wormhole", line 11, in <module>
>       load_entry_point('magic-wormhole==0.8.1', 'console_scripts', 
> 'wormhole')()
>     File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
>       return self.main(*args, **kwargs)
>     File "/usr/lib/python3/dist-packages/click/core.py", line 675, in main
>       _verify_python3_env()
>     File "/usr/lib/python3/dist-packages/click/_unicodefun.py", line 119, in 
> _verify_python3_env
>       'mitigation steps.' + extra)
>   RuntimeError: Click will abort further execution because Python 3 was 
> configured to use ASCII as encoding for the environment.  Either run this 
> under Python 2 or consult http://click.pocoo.org/python3/ for mitigation 
> steps.
>   
>   This system supports the C.UTF-8 locale which is recommended.
>   You might be able to resolve your issue by exporting the
>   following environment variables:
>   
>       export LC_ALL=C.UTF-8
>       export LANG=C.UTF-8
>
> Shouldn't LANG=C be supported by everything?

Yes, I think so.

> This is kind of a problem for scripting use of wormhole, when any
> translations of the output need to be avoided. While C.UTF-8 is
> available in recent versions of Debian, I doubt it's available widely
> elsewhere. For example, it's not available on OSX.

That's a good point! However, wouldn't that be a bug with wormhole on OS
X (as opposed to here, on Debian, which supports UTF-8 natively).

Also, I think this is more a python-click bug than something specific to
magic-wormhole. I am not sure we can do anything to work around that
issue, as the click documentation specifically states it *expects* a
UTF-8 environment *before* the program is started:

http://click.pocoo.org/5/python3/#python-3-surrogate-handling

I am sorry but I don't think I can be of much more help here. :( We
*could* catch and ignore that exception, but I am not sure that is a
safe route to take...

A.

-- 
Qui vit sans folie n'est pas si sage qu'il croit.
                        - François de La Rochefoucauld

Reply via email to