[ moved from users@ to dev@; tldr: trunk gen-make.py fails with py3.4/windows ]
Stefan Hett wrote on Mon, Jun 22, 2015 at 15:12:31 +0200:
> >On Mon, Jun 22, 2015 at 12:45 PM, Stefan Hett <stefan_at_egosoft.com> wrote:
> >> File "E:\Python34\lib\encodings\cp1252.py", line 23, in decode return
> >>UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 2116:
> >>character maps to <undefined>
> >Quick shot: perhaps it's related to the Python version. I'm using
> >Python 2.7. Can you try that?
> Hi Johan,
> thanks for the hint. That indeed seemed to have been the problem.
> Passes through the python script now when using Python 2.7.10.
Two things about that error:
1. The file that triggers it is probably
(it has a 0x81 byte at the given offset). It's a binary file so it
shouldn't be fed to a unicode decoder in the first place. It's only
used by some unit tests.
2. I went through autogen.sh/configure on Python 3 on Linux a few weeks
ago and got it to pass. (I don't recall what's the status of the test
suite under py3.) So either this issue is specific to Py3 on Windows,
or I missed something, or the gen-make.py code has changed.
Anyway, gen-make.py shouldn't fail like that. I'd rather it just worked
under py3, but if we can't make it work, we should error out up front if
Python is newer than we support.
P.S. If anyone wonders, the command I used was 'xxd -s 2114 -l 5
-g 2 | grep -qw 81'.
Received on 2015-06-22 15:44:07 CEST