[Patches] [ python-Patches-1218421 ] byteorder issue in PyMac_GetOSType

SourceForge.net noreply at sourceforge.net
Fri Jun 10 20:59:03 CEST 2005


Patches item #1218421, was opened at 2005-06-10 20:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1218421&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Macintosh
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Ronald Oussoren (ronaldoussoren)
Assigned to: Jack Jansen (jackjansen)
Summary: byteorder issue in PyMac_GetOSType

Initial Comment:
The attached patch fixes an issue with byte order in 
PyMac_GetOSType (and its reverse).

These functions convert from an OSType to a string (and back) by 
interpreting an OSType as a 4-byte string. This is not correct if 
you're not on a big-endian system, such as some of the future Apple 
systems.
 
The attached patch is for python 2.4.1.



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1218421&group_id=5470


More information about the Patches mailing list