Skip Menu | You are currently an anonymous guest. | Login | Return to Main | About rt.cpan.org
 

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.

X Report information
Id: 30187
Status: resolved
Left: 0 min
Priority: 0/0
Queue: XML-TreePP

Owner: Nobody
Requestors: xatrix <xatrix [...] atlas.cz>
Cc:
AdminCc:

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

X Attachments



X History Display mode: Brief headersFull headers
#   Mon Oct 22 06:52:05 2007 xatrix - Ticket created  
Subject: Encoding error with uncommon XML data
[text/plain 234b]
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

[application/octet-stream 162b]
Message body not shown because it is too large or is not plain text.
#   Sun Nov 11 05:31:48 2007 KAWASAKI - Correspondence added  
[text/plain 358b]
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;
---
> my $getcode = ( $args =~ /\s+encoding=(".*?"|'.*?')/ )[0] or return;
> $getcode =~ s/^['"]//;
> $getcode =~ s/['"]$//;
#   Sun Nov 11 05:31:54 2007 RT_System - Status changed from 'new' to 'open'  
#   Sun Nov 11 05:31:57 2007 KAWASAKI - Status changed from 'open' to 'resolved'