[Pythonmac-SIG] cElementTree 1.0.5 and expat byte order
Bob Ippolito
bob at redivi.com
Fri Feb 3 23:04:16 CET 2006
The method that cElementTree uses to determine byte order is not
reliable on some platforms such as Mac OS X or Darwin where you may
be compiling for multiple architectures at the same time (in my
particular case, i386 and ppc). The best way to determine byte order
is either at runtime or from the C preprocessor.
Attached is a patch for cElementTree that determines expat's
byteorder from Python.h on platforms other than Windows and Mac OS
Classic. It also adds a test that should exercise expat's capability
to read UTF-16 streams.
-bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cElementTree-1.0.5-byteorder.patch
Type: application/octet-stream
Size: 1953 bytes
Desc: not available
Url : http://mail.python.org/pipermail/pythonmac-sig/attachments/20060203/dd07ec37/attachment-0001.obj
More information about the Pythonmac-SIG
mailing list