pdfjs: open system file in binary read

This commit is contained in:
Daniel Schadt 2015-11-23 22:58:00 +01:00
parent 0095b72e03
commit 623b6fba7e

View File

@ -143,7 +143,7 @@ def _read_from_system(system_path, names):
"""
for name in names:
try:
with open(os.path.join(system_path, name)) as f:
with open(os.path.join(system_path, name), 'rb') as f:
return f.read()
except OSError:
continue