Skip Menu |

This queue is for tickets about the XML-SAX-Writer CPAN distribution.

Report information
The Basics
Id: 17177
Status: resolved
Priority: 0/
Queue: XML-SAX-Writer

People
Owner: Nobody in particular
Requestors: FLORA [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.44
Fixed in: (no value)



Subject: Dropped output when encoding to non utf8
Hello, I'm the maintainer of the Debian packages for XML::SAX::Writer. A user of the Debian packages reported the following bug to me: XML::SAX::Writer has an encoding feature which uses Text::Iconv to encode characters when writing them out to files. This is enabled by using the EncodeFrom/EncodeTo arguments to new(). Unfortunately it doesn't check the return code from the Text::Iconv::convert function, which can be undef. The result is that if Text::Iconv can't encode a character, this character (and potentially some characters around it) are dropped on the floor without an error message. An error can occur for instance if you have UTF8 input data and specify conversion to iso-8859-1, because not all UTF8 characters can be encoded in iso-8859-1. This is a serious bug because it can cause unnoticed data loss.
Is fixed in upcoming v0.50, available in SVN for testing: https://svn.sourceforge.net:443/svnroot/perl-xml/modules/xml-sax-writer
This looks like it should have been closed years ago. Closing now. If this is still an issue please re-open. -Chris