Subject: | Formfeeds break parsing in XML::Twig 3.13 |
Date: | Wed, 27 Feb 2008 16:39:43 +0000 |
To: | bug-XML-Twig [...] rt.cpan.org |
From: | "Adam Bernard" <disconcertedape [...] googlemail.com> |
The presence of a formfeed character, aka "\f", aka chr(12), seems to
disrupt parsing in XML::Twig 3.13 .
test case:
$ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml></xml>")' #fine
$ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\n</xml>")' #fine
$ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\r</xml>")' #fine
$ perl -MXML::Twig -le'XML::Twig::Elt->parse("<xml>\f</xml>")' #breaks
not well-formed (invalid token) at line 1, column 5, byte 5 at
/usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi/XML/Parser.pm
line 187
$ perl -v
This is perl, v5.8.5 built for x86_64-linux-thread-multi
$ uname -a
Linux {machine name} 2.6.9-42.ELlargesmp #1 SMP Tue Aug 15 11:42:23
BST 2006 x86_64 x86_64 x86_64 GNU/Linux
Adam