Skip Menu |

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

Report information
The Basics
Id: 30187
Status: resolved
Priority: 0/
Queue: XML-TreePP

People
Owner: Nobody in particular
Requestors: xatrix [...] atlas.cz
Cc:
AdminCc:

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



Subject: Encoding error with uncommon XML data
XML-TreePP extract wrong encoding when XML file starts with header using character \' instead of \" like this example: <?xml version='1.0' encoding='windows-1250'?> I hope that this patch will do the work. P.S: Sory for my English
Subject: TreePP-0.31.patch
1068c1068 < my $getcode = ( $args =~ /\s+encoding="(.*?)"/ )[0] or return; --- > my $getcode = ( $args =~ /\s+encoding=("(.*?)"|'(.*?)')/ )[0] or return;
Version 0.32 was released. http://www.kawa.net/works/perl/treepp/treepp-e.html http://tech.groups.yahoo.com/group/xml-treepp/message/25 1068c1068,1070 < my $getcode = ( $args =~ /\s+encoding="(.*?)"/ )[0] or return; --- Show quoted text
> my $getcode = ( $args =~ /\s+encoding=(".*?"|'.*?')/ )[0] or return; > $getcode =~ s/^['"]//; > $getcode =~ s/['"]$//;