RT for rt.cpan.org
Skip Menu
|
Bug #88730 for XML-LibXML: substringData weirdly gives incorrect result
Active bugs
Resolved bugs
Rejected bugs
This queue is for tickets about the
XML-LibXML CPAN distribution
.
Report information
The Basics
Id:
88730
Status:
open
Priority:
0/
Queue:
XML-LibXML
People
Owner:
Nobody in particular
Requestors:
ailin [...] devio.us
Cc:
AdminCc:
Bug Information
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)
History
Show all quoted text
Tue Sep 17 07:59:20 2013
ailin [...] devio.us - Ticket created
Subject:
substringData weirdly gives incorrect result
Date:
Tue, 17 Sep 2013 13:57:43 +0200
To:
bug-XML-LibXML [...] rt.cpan.org
From:
"A.N." <ailin [...] devio.us>
Hi, my $node = XML::LibXML::Text->new("hans"); say $node->substringData(0,2) returns "h" instead of "ha". Thanks.
Tue Sep 17 08:25:44 2013
ailin [...] devio.us - Correspondence added
Subject:
Re: [rt.cpan.org #88730] AutoReply: substringData weirdly gives incorrect result
Date:
Tue, 17 Sep 2013 14:24:15 +0200
To:
bug-XML-LibXML [...] rt.cpan.org
From:
"A.N." <ailin [...] devio.us>
As pointed out by huf @ irc, the implementation is totally bogus ;-) and calls xmlStrsub with "dl" instead of "length" as the third parameter.; see
https://metacpan.org/source/SHLOMIF/XML-LibXML-2.0105/LibXML.xs#L6511
vs
http://www.xmlsoft.org/html/libxml-xmlstring.html#xmlStrsub
Take care, Nei
Tue Sep 17 12:18:16 2013
SHLOMIF [...] cpan.org - Correspondence added
Hi Nei, On Tue Sep 17 08:25:44 2013, ailin@devio.us wrote:
Show quoted text
> As pointed out by huf @ irc, the implementation is totally bogus ;-) and > calls xmlStrsub with "dl" instead of "length" as the third parameter.; > see >
https://metacpan.org/source/SHLOMIF/XML-LibXML-2.0105/LibXML.xs#L6511
vs >
http://www.xmlsoft.org/html/libxml-xmlstring.html#xmlStrsub
> > Take care, > Nei >
Thanks for the report. In the meanwhile, a patch (or a testcase) will be appreciated. Make sure you follow the guidelines in the HACKING file. Regards, -- Shlomi Fish
Tue Sep 17 12:18:17 2013
The RT System itself - Status changed from 'new' to 'open'