summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authormaiphi <maiphi.public@gmx.net>2019-11-07 20:22:01 (GMT)
committermaiphi <maiphi.public@gmx.net>2019-11-07 20:22:01 (GMT)
commit10d57a7c5cb108a4fa707560c0e72ccfd3793b76 (patch)
tree17eae6cd96e3d316192c063bf075e39f3a257e2b /test
parent477ffd82d67ebd4820d33be760c1594fd82c09f0 (diff)
downloadSCons-10d57a7c5cb108a4fa707560c0e72ccfd3793b76.zip
SCons-10d57a7c5cb108a4fa707560c0e72ccfd3793b76.tar.gz
SCons-10d57a7c5cb108a4fa707560c0e72ccfd3793b76.tar.bz2
Latin-1 log test case: compile to DVI, not PostScript; add comment
Diffstat (limited to 'test')
-rw-r--r--test/TEX/LATEX.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/TEX/LATEX.py b/test/TEX/LATEX.py
index 592bbb7..dabe8b1 100644
--- a/test/TEX/LATEX.py
+++ b/test/TEX/LATEX.py
@@ -28,6 +28,8 @@ r"""
Validate that we can set the LATEX string to our own utility, that
the produced .dvi, .aux and .log files get removed by the -c option,
and that we can use this to wrap calls to the real latex utility.
+Check that a log file with a warning encoded in non-UTF-8 (here: Latin-1)
+is read without throwing an error.
"""
import TestSCons
@@ -195,9 +197,11 @@ This is the include file. mod %s
test.write('SConstruct', """
env = Environment()
-env.PostScript('latin1log.tex')
+env.DVI('latin1log.tex')
""")
+ # This will trigger an overfull hbox warning in the log file,
+ # containing the umlaut "o in Latin-1 ("T1 fontenc") encoding.
test.write('latin1log.tex', r"""
\documentclass[12pt,a4paper]{article}
\usepackage[T1]{fontenc}