Skip Menu |

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)



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.
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
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