mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:14:31 +02:00
LIT Output: Fix regression in 3.41 caused by py3 porting that broke conversion of some files to LIT. Fixes #1837561 [Lit conversion error (Conversion options changed from default)](https://bugs.launchpad.net/calibre/+bug/1837561)
This commit is contained in:
parent
9210902218
commit
80c6de0eb9
1 changed files with 2 additions and 0 deletions
|
|
@ -721,6 +721,8 @@ def _build_dchunks(self):
|
|||
dchunks.append(dchunk.getvalue())
|
||||
dcounts.append(dcount)
|
||||
if ichunk:
|
||||
if not isinstance(name, bytes):
|
||||
name = name.encode('utf-8')
|
||||
ichunk.write(decint(len(name)))
|
||||
ichunk.write(name)
|
||||
ichunk.write(decint(cid))
|
||||
|
|
|
|||
Loading…
Reference in a new issue