mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix a regression viewing/converting PDB files with exceptional charsets
This commit is contained in:
parent
0d44199a65
commit
d49c6677e2
@ -213,7 +213,7 @@ class SectionMetadata(object):
|
||||
# ExceptionalCharSets
|
||||
elif type == 2:
|
||||
ii_adv = 0
|
||||
for ii in range(length / 2):
|
||||
for ii in range(length // 2):
|
||||
uid, = struct.unpack('>H', raw[6+adv+ii_adv:8+adv+ii_adv])
|
||||
mib, = struct.unpack('>H', raw[8+adv+ii_adv:10+adv+ii_adv])
|
||||
self.exceptional_uid_encodings[uid] = MIBNUM_TO_NAME.get(mib, 'latin-1')
|
||||
|
Loading…
x
Reference in New Issue
Block a user