This patches fixes a number of byteorder problems in MacOSX specific code.

This commit is contained in:
Ronald Oussoren 2006-04-17 13:40:08 +00:00
parent 749d070e93
commit 6c1074888e
4 changed files with 10 additions and 13 deletions

View file

@ -15,8 +15,8 @@ AS_VERSION=0x00020000
dataforkdata = 'hello\r\0world\n'
resourceforkdata = 'goodbye\ncruel\0world\r'
applesingledata = struct.pack("ll16sh", AS_MAGIC, AS_VERSION, "foo", 2) + \
struct.pack("llllll", 1, 50, len(dataforkdata),
applesingledata = struct.pack(">ll16sh", AS_MAGIC, AS_VERSION, "foo", 2) + \
struct.pack(">llllll", 1, 50, len(dataforkdata),
2, 50+len(dataforkdata), len(resourceforkdata)) + \
dataforkdata + \
resourceforkdata