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

Re: bug in XML::LibXML::Error 1.69_1: "int1, int2, int3" becomes "num1, num2, num3"

From: olivier Thereaux <ot@w3.org>
Date: Fri, 6 Feb 2009 10:44:53 -0500
Cc: "public-qa-dev@w3.org list" <public-qa-dev@w3.org>, Karl Dubost <karl+w3c@la-grange.net>
Message-Id: <CFA61716-C047-455D-8D44-2AF88546DDAD@w3.org>
To: Petr Pajas <pajas@ufal.mff.cuni.cz>

On 6-Feb-09, at 10:35 AM, Petr Pajas wrote:
> So looking at libxml2 code (error.c) it seems that the generic  
> handler does
> its own computation of the column number while selecting the context  
> of the
> source XML to print (see xmlParserPrintFileContextInternal). The  
> value passed
> to the structured handler is obtained from the input buffer and  
> seems to be
> inaccurate/approximate.
> So a did what xmlParserPrintFileContextInternal does and added two  
> fields:
> $@->context() returns a string with the XML surrounding the error and
> $@->column() returns the offset in this string. This is now in SVN,
> I'll make another developers release soon. These values are used in
> serialization code ("$@") so that now XML::LibXML hopefully produces  
> the
> exact same error messages as xmllint.

This is perfect, thanks Petr. Looking forward to the release.

Received on Friday, 6 February 2009 15:45:06 UTC

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