From: Radek Czajka Date: Wed, 20 Oct 2010 11:10:07 +0000 (+0200) Subject: minor fix X-Git-Tag: 1.7~264 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/cf3ac93f45c18f1e385c1f1bbc02bfc3dfa7bdf7?hp=524ec674a82642609068599f334fc1423c4bc067 minor fix --- 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)