You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported in Debian bug #714214 [1], Jakub Wilk discovered that translate toolkit misunderstands little-endian MO files. He writes:
I crafted a little-endian MO file with revision 0.42. translate-toolkit
refuses to open it, saying the revision is 42.0:
from translate.storage.mo import mofile
mofile(open('messages.mo'))
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python2.7/dist-packages/translate/storage/mo.py", line 147, in init
self.parsestring(inputfile)
File "/usr/lib/python2.7/dist-packages/translate/storage/base.py", line 729, in parsestring
newstore.parse(storestring)
File "/usr/lib/python2.7/dist-packages/translate/storage/mo.py", line 262, in parse
raise base.ParseError("""Unable to process version %d.%d MO files""" % (version_maj, version_min))
translate.storage.base.ParseError: 'Unable to process version 42.0 MO files'
Version: 1.10.0
Created attachment 944
Sample MO file
As reported in Debian bug #714214 [1], Jakub Wilk discovered that translate toolkit misunderstands little-endian MO files. He writes:
I crafted a little-endian MO file with revision 0.42. translate-toolkit
refuses to open it, saying the revision is 42.0:
[1] http://bugs.debian.org/714214
The text was updated successfully, but these errors were encountered: