Use -siodates with pdfinfo as it generates non UTF-8 date strings on some windows locales otherwise

This commit is contained in:
Kovid Goyal 2017-05-12 23:37:40 +05:30
parent 6eb8526c3d
commit 0ab03e4485
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -35,7 +35,7 @@ def read_info(outputdir, get_cover):
ans = {}
try:
raw = subprocess.check_output([pdfinfo, '-enc', 'UTF-8', 'src.pdf'])
raw = subprocess.check_output([pdfinfo, '-enc', 'UTF-8', '-isodates', 'src.pdf'])
except subprocess.CalledProcessError as e:
prints('pdfinfo errored out with return code: %d'%e.returncode)
return None