Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2
python3-polib
endian.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File endian.patch of Package python3-polib
Index: polib-1.0.3/polib.py =================================================================== --- polib-1.0.3.orig/polib.py +++ polib-1.0.3/polib.py @@ -536,16 +536,12 @@ class _BaseFile(list): koffsets += [l1, o1 + keystart] voffsets += [l2, o2 + valuestart] offsets = koffsets + voffsets - # check endianness for magic number - if struct.pack('@h', 1) == struct.pack('<h', 1): - magic_number = MOFile.LITTLE_ENDIAN - else: - magic_number = MOFile.BIG_ENDIAN + magic = 0x950412de output = struct.pack( "Iiiiiii", # Magic number - magic_number, + magic, # Version 0, # number of entries
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor