mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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 = {}
|
ans = {}
|
||||||
|
|
||||||
try:
|
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:
|
except subprocess.CalledProcessError as e:
|
||||||
prints('pdfinfo errored out with return code: %d'%e.returncode)
|
prints('pdfinfo errored out with return code: %d'%e.returncode)
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user