mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
partial fix for bug 2623, writes characters such as æ to file but ebook-viewr/firefox cannot load the image with the character in the file name.
This commit is contained in:
parent
d5bf14f1d8
commit
6a23f90a11
@ -149,7 +149,7 @@ class EbookIterator(object):
|
||||
if self.ebook_ext in ('lit', 'mobi', 'prc', 'opf') and cover:
|
||||
cfile = os.path.join(os.path.dirname(self.spine[0]),
|
||||
'calibre_iterator_cover.html')
|
||||
open(cfile, 'wb').write(TITLEPAGE%cover)
|
||||
open(cfile, 'wb').write(TITLEPAGE%cover.encode('utf-8'))
|
||||
self.spine[0:0] = [SpineItem(cfile)]
|
||||
self.delete_on_exit.append(cfile)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user