Subject: | XML-SAX-Writer-0.44 PATCH for test case on VMS |
XML-SAX-Writer-0.44
Perl 5.87 on VMS
Please find attached a small patch that allows all test cases to pass on
VMS.
Summary of changes:
Iconv codepage for "iso-8859-1" is "iso8859-1" on VMS.
IconvPtr type fix. See: bug 7436 and fix from "ville.skytta@iki.fi"
(I only just noticed it) - Prefer this fix over the one in this diff.
Thanks
Peter (Stig) Edwards
Subject: | XML-SAX-Writer-0.44.diff |
--- XML-SAX-Writer-0.44/t/05basic.t 2006-04-10 09:30:09.1144661409 -0400
+++ XML-SAX-Writer-0.44/t/05basic.t 2006-04-10 10:03:16.1144663396 -0400
@@ -47,0 +47,0 @@
# different inits (mostly for Consumer DWIM)
$w1->{EncodeFrom} = 'iso-8859-1';
-$w1->start_document;
-isa_ok($w1->{Encoder}, 'Text::Iconv', 'iconv converter for real encoding');
+if ($^O eq 'VMS') {
+ $w1->{EncodeFrom} = 'iso8859-1';
+}
+
+$w1->start_document; # dies here if unsupported conversion
+my $iconv_converter_type = 'Text::Iconv';
+if ($^O eq 'VMS') {
+ $iconv_converter_type = 'Text::IconvPtr';
+}
+isa_ok($w1->{Encoder}, $iconv_converter_type, 'iconv converter for real encoding');
$w1->{Output} = 'test_file_for_output';
$w1->start_document;