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

Attachment: cElementTree-1.0.5-byteorder.patch
Description: Binary data

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to