1. David Jean Louis
  2. polib
  3. Issues
Issue #16 resolved

Generated MO file not the same as the one generated by msgfmt

created an issue

Hi, I think there is a small bug in the to_binary method to write a mo file (http://bitbucket.org/izi/polib/src/78bebd0a7089/polib.py#cl-578)

Changing the code as such (offset of hash table) will generate the same MO file as msgfmt.



struct.pack("IIIIIII", 0x950412de, # Magic number 0, # Version entries_len, # # of entries 74, # start of key index 74+entries_len*8, # start of value index 0, keystart) # size and offset of hash table