mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 19:03:15 +02:00
Fix a regression viewing/converting PDB files with exceptional charsets
This commit is contained in:
parent
0d44199a65
commit
d49c6677e2
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ def __init__(self, raw):
|
|||
# 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…
Reference in a new issue