mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
This patches fixes a number of byteorder problems in MacOSX specific code.
This commit is contained in:
parent
749d070e93
commit
6c1074888e
4 changed files with 10 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue