LP#1442276 pgTAP test for oils_xslt_process
authorDan Scott <dan@coffeecode.net>
Fri, 3 Mar 2017 21:03:30 +0000 (16:03 -0500)
committerKathy Lussier <klussier@masslnc.org>
Sat, 11 Mar 2017 03:51:32 +0000 (22:51 -0500)
commit6d38a008ba6047d1660fa0fff32a33703ada8380
treee2047801d9e387323cea9c9f532a1376997b326e
parent574bba6dcd20787d60cfebcbd7a7a5a23f507bba
LP#1442276 pgTAP test for oils_xslt_process

In moving from the deprecated XML::LibXSLT::output_string() to output_as_chars(),
add a regression test to ensure that we do not suffer from corrputed encoding
output in the future.

We test both the case where an output encoding has been explicitly declared,
as well as the case where an output encoding has not been explicitly declared.
It was this subtle difference that was causing the problem with output_string().

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/src/sql/Pg/t/regress/lp1442276_oils_xslt_encoding.pg [new file with mode: 0644]