diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-12-21 14:33:31 +0100 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-12-21 14:37:50 +0100 |
commit | 46633b1f00204a310e630009f0420218186439e2 (patch) | |
tree | 5edb31cf540ab825d96601b46c939d1b6b0ca1ef /js/ansi | |
parent | b28c97c9b8af266d4f12deb5febcf28807d9f5c6 (diff) |
Don't raise exception on invalid UTF-8 output
This could be reproduced with:
./test/spec_tests.py --program kramdown --pattern Enti
with Kramdown version 1.5.0.
The main problem is that it would stop future tests from being carried out.
After this commit it is just counted as a failure.
The error message printed is of the form:
Unicode error: 'utf8' codec can't decode byte 0xfc in position 8: invalid start byte
'<p># \xd3\x92 \xcf\xa0 \xef\xbf\xbd</p>\n'
'<p># \xd3\x92 \xcf\xa0 \xfc\x85\xb8\xb0\xa9\xb8</p>\n'
Diffstat (limited to 'js/ansi')
0 files changed, 0 insertions, 0 deletions