Skip Menu |

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

Report information
The Basics
Id: 45194
Status: rejected
Priority: 0/
Queue: XML-Writer

People
Owner: Nobody in particular
Requestors: andrewksmith [...] gmail.com
Cc:
AdminCc:

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



Subject: XML::Writer dies on vertical tab in characters.
Date: Tue, 21 Apr 2009 15:37:11 -0400
To: bug-XML-Writer [...] rt.cpan.org
From: Andrew Smith <andrewksmith [...] gmail.com>
If you have vertical tabs (character 11) in your character data XML::Writer crashes. For example, my $testStr = chr(11); $xmlWriter->startTag("test"); $xmlWriter->characters($testStr); $xmlWriter->endTag("test"); my setup: XML-Writer-0.606 Perl v5.8.3 Linux 2.6.5-7.311-smp
On Tue Apr 21 15:37:35 2009, andrewksmith@gmail.com wrote: Show quoted text
> If you have vertical tabs (character 11) in your character data > XML::Writer crashes.
This check is by design, to prevent invalid XML 1.0. Using UNSAFE mode will relax the check. The XML 1.0 charset requirements: http://www.w3.org/TR/REC-xml/#charsets only allow certain characters: Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF] /* any Unicode character, excluding the surrogate blocks, FFFE, and FFFF. */ and XML::Writer enforces that.