1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
#! /bin/sh /usr/share/dpatch/dpatch-run
## convert_errors.dpatch by Florian Ragwitz <rafl@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: add more documentation on encoding errors
@DPATCH@
--- libxml-writer-sax-perl-0.44.orig/Writer.pm 2006-06-15 18:10:28.000000000 +0200
+++ libxml-writer-sax-perl-0.44/Writer.pm 2006-06-15 18:10:16.195229800 +0200
@@ -563,6 +563,14 @@
=back
+Note that the return value of the convert method is B<not> checked. Output may
+be truncated if a character couldn't be converted correctly. To avoid problems
+the encoder should take care encoding errors itself, for example by raising an
+exception. If you use Text::Iconv as the encoder you can use the following:
+
+ my $w = XML::Sax::Writer->new;
+ $w->{Encoder}->raise_error(1);
+
=head1 CUSTOM OUTPUT
This module is generally used to write XML -- which it does most of the
|