From 6e4a31ac8704b854d27fb93caecd812883906ed8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 2 Jan 2016 14:29:02 +0530 Subject: [PATCH] E-book viewer: Fix failure to view comic files that contain non-ASCII characters int heir internal filenames. Fixes #1530517 [Bug with Viewer and Localized characters](https://bugs.launchpad.net/calibre/+bug/1530517) --- src/calibre/ebooks/conversion/plugins/comic_input.py | 6 ++++-- src/calibre/ebooks/metadata/opf2.py | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/conversion/plugins/comic_input.py b/src/calibre/ebooks/conversion/plugins/comic_input.py index e66ca49f2d..daf1ff5184 100644 --- a/src/calibre/ebooks/conversion/plugins/comic_input.py +++ b/src/calibre/ebooks/conversion/plugins/comic_input.py @@ -232,9 +232,10 @@ class ComicInput(InputFormatPlugin): def create_wrappers(self, pages): from calibre.ebooks.oeb.base import XHTML_NS wrappers = [] - WRAPPER = textwrap.dedent('''\ + WRAPPER = textwrap.dedent(u'''\ + Page #%d