From 74dd02ea5d106d125877b16cd8b5712c5361714f Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 23 Nov 2018 14:03:58 +0100 Subject: [PATCH 1/1] fix for perl 5.26+ --- librarian/epub.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/librarian/epub.py b/librarian/epub.py index 8d4e73f..c802ec7 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -675,12 +675,13 @@ def transform(wldoc, verbose=False, style=None, html_toc=False, ''.join(chars).encode('utf-8'), get_resource('fonts/' + fname), os.path.join(tmpdir, fname)] + env = {"PERL_USE_UNSAFE_INC": "1"} if verbose: print "Running font-optimizer" - subprocess.check_call(optimizer_call) + subprocess.check_call(optimizer_call, env=env) else: dev_null = open(os.devnull, 'w') - subprocess.check_call(optimizer_call, stdout=dev_null, stderr=dev_null) + subprocess.check_call(optimizer_call, stdout=dev_null, stderr=dev_null, env=env) zip.write(os.path.join(tmpdir, fname), os.path.join('OPS', fname)) manifest.append(etree.fromstring( '' % (fname, fname))) -- 2.20.1