W3C home > Mailing lists > Public > public-qa-dev@w3.org > January 2009

Re: implementation of libxml2 structured errors throws only last parsing error?

From: olivier Thereaux <ot@w3.org>
Date: Thu, 8 Jan 2009 20:57:07 -0500
Cc: "public-qa-dev@w3.org list" <public-qa-dev@w3.org>
Message-Id: <85B5E935-9E30-45E0-8D55-AEBEFB240085@w3.org>
To: Petr Pajas <pajas@ufal.mff.cuni.cz>

Hi Petr,

On 8-Jan-09, at 5:22 AM, Petr Pajas wrote:
> Silly bug really. The patch looks like this:
>
> Index: lib/XML/LibXML/Error.pm
> ===================================================================
> --- lib/XML/LibXML/Error.pm     (revision 762)
> +++ lib/XML/LibXML/Error.pm     (working copy)
> @@ -84,7 +84,7 @@
>
>     sub _callback_error {
>       #print "CALLBACK\n";
> -      my ($xE,$prev) = shift;
> +      my ($xE,$prev) = @_;
>       my $terr;
>       $terr=XML::LibXML::Error->new($xE);
>       unless ( defined $terr->{file} and length $terr->{file} ) {
>
> (the previous error passed in the second argument got lost)
>
> The same was fixed in the SVN, I'll try to wrap up other work to
> make a release of 1.70 soon.

Excellent! Thanks for such a quick fix. Will be monitoring CPAN for  
the release of 1.70, so that we can update our validator as soon as it  
is out.

Thanks a lot,
-- 
olivier 
Received on Friday, 9 January 2009 01:57:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:54:55 UTC