Skip to content

Commit

Permalink
* Check entities in long character strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Wielemaker committed Dec 20, 2004
1 parent 79c3dd5 commit d8ecc6a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Test/ok/wcharlong.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[element(test, [], ['\n', element(p, [], ['\nThis is a long test holding, with the intention to switch to wide character\nencoding from the local buffer to malloc\'ed buffer. This (✌) is a\npiece symbol.\n']), '\n', element(p, [], ['\nThis is a long test holding, with the intention to switch to wide character\nencoding after the output buffer has been switched to malloc\'ed mode. For this\nreason, our buffer should should hold more than 256 character, as defined in\nutil.h in the structure ocharbuf. This (➽) is a fat arrow.\n']), '\n'])].
[].
16 changes: 16 additions & 0 deletions Test/wcharlong.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>

<test>
<p>
This is a long test holding, with the intention to switch to wide character
encoding from the local buffer to malloc'ed buffer. This (&#9996;) is a
piece symbol.
</p>
<p>
This is a long test holding, with the intention to switch to wide character
encoding after the output buffer has been switched to malloc'ed mode. For this
reason, our buffer should should hold more than 256 character, as defined in
util.h in the structure ocharbuf. This (&#10173;) is a fat arrow.
</p>
</test>

0 comments on commit d8ecc6a

Please sign in to comment.