mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Use -siodates with pdfinfo as it generates non UTF-8 date strings on some windows locales otherwise
This commit is contained in:
parent
6eb8526c3d
commit
0ab03e4485
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user