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 /testing | |
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 'testing')
-rw-r--r-- | testing/framework/TestCmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/framework/TestCmd.py b/testing/framework/TestCmd.py index 81e03f3..9218f60 100644 --- a/testing/framework/TestCmd.py +++ b/testing/framework/TestCmd.py @@ -1528,7 +1528,7 @@ class TestCmd(object): # TODO: Run full tests on both platforms and see if this fixes failures # It seems that py3.6 still sets text mode if you set encoding. elif sys.version_info[0] == 3: # TODO and sys.version_info[1] < 6: - stream = stream.decode('utf-8') + stream = stream.decode('utf-8', errors='replace') stream = stream.replace('\r\n', '\n') elif sys.version_info[0] == 2: stream = stream.replace('\r\n', '\n') |