From cf3ac93f45c18f1e385c1f1bbc02bfc3dfa7bdf7 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 20 Oct 2010 13:10:07 +0200 Subject: [PATCH] minor fix --- librarian/epub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian/epub.py b/librarian/epub.py index 649901e..52294dd 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -399,7 +399,7 @@ def transform(provider, slug, output_file=None, output_dir=None): os.chdir(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../font-optimizer')) for fname in 'DejaVuSerif.ttf', 'DejaVuSerif-Bold.ttf', 'DejaVuSerif-Italic.ttf', 'DejaVuSerif-BoldItalic.ttf': - subprocess.check_call(['./subset.pl', '--chars', ''.join(chars), res('../fonts/' + fname), os.path.join(tmpdir, fname)]) + subprocess.check_call(['./subset.pl', '--chars', ''.join(chars).encode('utf-8'), res('../fonts/' + fname), os.path.join(tmpdir, fname)]) zip.write(os.path.join(tmpdir, fname), os.path.join('OPS', fname)) rmtree(tmpdir) os.chdir(cwd) -- 2.20.1