On 05/05/15 15:18, Alexandre Detiste wrote:
> Would something like this be ok ?

> +        if sys.stdout.encoding == 'UTF-8':
> +            longname = self.longname
> +        else:
> +            longname = self.longname.replace('ł','l')

Ugh, I'd rather not special-case the non-ASCII characters that happen to
appear in the names of games that we support... but perhaps this is a
necessary evil in the short term.

See also

<https://bugs.python.org/issue19977>
<https://hg.python.org/cpython/rev/bc06f67234d0>

which indicate that Python itself is likely to fix this in 3.5.

Having the wrapper shell script set something like
PYTHONIOENCODING=":replace" if it detects the C locale might also be a
reasonable workaround.

    S


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to