Bug#912780: Line numbers not printed on error despite XML_LIBXML_LINENUMBERS => 1

積丹尼 Dan Jacobson jidanni at jidanni.org
Mon Jan 14 15:13:14 GMT 2019


>>>>> "NT" == Niko Tyni <ntyni at debian.org> writes:
NT> On Sun, Nov 04, 2018 at 04:48:43AM +0800, 積丹尼 Dan Jacobson wrote:
>> Package: libxml-libxml-perl
>> Version: 2.0132+dfsg-2+b1
>> Severity: minor
>> 
>> Line numbers not printed on error despite XML_LIBXML_LINENUMBERS => 1:
>> $ cat e.pl
>> use XML::LibXML;
>> my $doc = XML::LibXML::Document->new( XML_LIBXML_LINENUMBERS => 1 );
>> my $x = $doc->createElement('x');
>> $x->appendChild($x);
>> $ perl -w e.pl
>> appendChild: HIERARCHY_REQUEST_ERR

NT> Not sure what you expected to get, the offending line in the code
NT> perhaps?

NT> It looks to me like this feature is about reporting line numbers
NT> in parsed XML documents, and you're not parsing anything.

Well all I know is I want it to say something like
>> e.pl: 3: appendChild: HIERARCHY_REQUEST_ERR



More information about the pkg-perl-maintainers mailing list