mattneub/appscript — pull request #2 by abarnert (2012-10-05 00:07:54+00:00)
Title: Fix for wide-Unicode little-endian Py3k.

- Inside ae.c, AE_GetCFStringRef assumes that the data inside a wide
PyUnicode is in the same endianness that CF wants. But PyUnicode is
native-endian, kCFStringEncodingUTF32 is big-endian (if no BOM). We
could write code to explcitly use kCFStringEncodingUTF32[LE|BE] as
appropriate, or tack on a BOM to the start of a copy of the UTF-32
and use kCFStringEncodingUTF32 as-is, or various other possibilities...
but it's a lot simpler to use UTF8, and I doubt the performance will
ever be an issue.