summaryrefslogtreecommitdiffstats
path: root/test/TEX/LATEX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TEX/LATEX.py')
-rw-r--r--test/TEX/LATEX.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/TEX/LATEX.py b/test/TEX/LATEX.py
index 553313e..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
@@ -193,6 +195,24 @@ This is the include file. mod %s
test.must_not_exist('latexi.ilg')
+ test.write('SConstruct', """
+env = Environment()
+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}
+\begin{document}
+\"oxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+\end{document}
+""")
+
+ test.run(arguments = 'latin1log.dvi', stderr = None)
+ test.must_exist('latin1log.dvi')
+
test.pass_test()
# Local Variables: