diff options
author | William Deegan <bill@baddogconsulting.com> | 2019-11-08 03:53:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-08 03:53:50 (GMT) |
commit | 1e17c653d95d800ee516ec246e5bb52cb9ae5c62 (patch) | |
tree | ef759a5a07b339f53dc60cc2d90176ef0e4e24e7 /src/engine/SCons | |
parent | b1a267d10bb40888b86ed8f0ae429a3a19029979 (diff) | |
parent | b41aedfbe1c00b1fef9072c987803d3af7efac9a (diff) | |
download | SCons-1e17c653d95d800ee516ec246e5bb52cb9ae5c62.zip SCons-1e17c653d95d800ee516ec246e5bb52cb9ae5c62.tar.gz SCons-1e17c653d95d800ee516ec246e5bb52cb9ae5c62.tar.bz2 |
Merge pull request #3472 from maiphi/latex_latin1
Fix crash when Latin-1 encoded Latex log file is read with Python 3
Diffstat (limited to 'src/engine/SCons')
-rw-r--r-- | src/engine/SCons/Tool/tex.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/SCons/Tool/tex.py b/src/engine/SCons/Tool/tex.py index 64b9d3b..5cf7bca 100644 --- a/src/engine/SCons/Tool/tex.py +++ b/src/engine/SCons/Tool/tex.py @@ -297,8 +297,8 @@ def InternalLaTeXAuxAction(XXXLaTeXAction, target = None, source= None, env=None logfilename = targetbase + '.log' logContent = '' if os.path.isfile(logfilename): - with open(logfilename, "r") as f: - logContent = f.read() + with open(logfilename, "rb") as f: + logContent = f.read().decode(errors='replace') # Read the fls file to find all .aux files |