summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2019-11-08 03:53:50 (GMT)
committerGitHub <noreply@github.com>2019-11-08 03:53:50 (GMT)
commit1e17c653d95d800ee516ec246e5bb52cb9ae5c62 (patch)
treeef759a5a07b339f53dc60cc2d90176ef0e4e24e7 /src/engine/SCons
parentb1a267d10bb40888b86ed8f0ae429a3a19029979 (diff)
parentb41aedfbe1c00b1fef9072c987803d3af7efac9a (diff)
downloadSCons-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.py4
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