[I18n-sig] More grief on Windows

Andy Robinson andy@reportlab.com
Thu, 23 Mar 2000 22:14:19 -0000


I've built the Unicode-aware Python on Windows, with a proper encodings
library.
The moment I try to look up a codec, python crashes...

C:\users>python
Python 1.5.2+ (#0, Mar 23 2000, 15:31:41) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> unicode('hello','ascii')
!!!! Application Error at this point

...try again...
C:\users>python
Python 1.5.2+ (#0, Mar 23 2000, 15:31:41) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> unicode('hello')
u'hello'
>>> unicode('hello','utf-8')
u'hello'
>>> import codecs
>>> codecs.lookup('ascii')
!!!! Application Error at this point


This happens on two different machines, building using VC++ and the standard
workspace, both with a full CVS tree and no other Pythons lurking.  I
stepped through in Pythonwin, and found that __init__.py is called, and the
'ascii' module is loaded on demand correctly; immediately after this, it
crashes.  I don't have the skills to debug the C - yet.

Is anyone else able to run the above snippets on Windows, or is it me?

Thanks very much,

Andy Robinson