diff options
author | maiphi <maiphi.public@gmx.net> | 2019-11-01 13:22:31 (GMT) |
---|---|---|
committer | maiphi <maiphi.public@gmx.net> | 2019-11-01 13:22:31 (GMT) |
commit | 6f35570377e7e7b5003dd6f069b65e95f9ae6efb (patch) | |
tree | 59b9ebe599281513e8e0998930ef326ec84bb3ed /test/TEX | |
parent | 0951e5d691487033bae283d98c45ccbcf3ae822d (diff) | |
download | SCons-6f35570377e7e7b5003dd6f069b65e95f9ae6efb.zip SCons-6f35570377e7e7b5003dd6f069b65e95f9ae6efb.tar.gz SCons-6f35570377e7e7b5003dd6f069b65e95f9ae6efb.tar.bz2 |
Add test case with Latin-1 encoded Latex log file. Required fix in the test framework.
In order to make the test work, it was necessary to handle the
encoding issue also in the test framework.
Otherwise, though the Latex builder can handle the case, the test
framework chokes on it.
Diffstat (limited to 'test/TEX')
-rw-r--r-- | test/TEX/LATEX.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/TEX/LATEX.py b/test/TEX/LATEX.py index 553313e..592bbb7 100644 --- a/test/TEX/LATEX.py +++ b/test/TEX/LATEX.py @@ -193,6 +193,22 @@ This is the include file. mod %s test.must_not_exist('latexi.ilg') + test.write('SConstruct', """ +env = Environment() +env.PostScript('latin1log.tex') +""") + + 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: |