Bug#784330: game-data-packager without arguments refuses to run due to Python error
Simon McVittie
smcv at debian.org
Tue May 5 18:37:36 UTC 2015
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
More information about the Pkg-games-devel
mailing list