[Pythonmac-SIG] AppleEvents in MacPython 2.3?

Mark Day mday at mac.com
Mon Aug 11 19:00:06 EDT 2003


On Monday, August 11, 2003, at 4:58 PM, Bob Ippolito wrote:

> I thought the FSRef was capable of long utf8 file names, and it was my 
> guess that's what FSGetCatalogInfo(0)[1] was?

FSGetCatalogInfo returns the long Unicode name via the HFSUniStr255 
type.  That is an array of 255 UTF-16 characters with a preceding 
length.  It looks like the Python glue is turning that into a Python 
unicode object.

The BSD (POSIX-style) APIs use UTF-8 pathnames.

-Mark




More information about the Pythonmac-SIG mailing list