[Nautilus-list] scrollkeeper vs. new gnome-xml (was Re: [Nautilus-list] scrollkeeper-update hangs during Nautilusbuild)



on 3/26/01 10:26 AM, Laszlo Kovacs at laszlo kovacs sun com wrote:

>> I do have that version (0.1.4).
>> 
>> The problem seems to be an infinite loop in the gnome-xml parsing code.
>> Probably a recent change as part of this big xml compatibility brouhaha
>> going on. I'm trying to debug it now.
> Could be. Scrollkeeper certainly does not work well with the latest
> changes in libxml. I am trying to fix it.
> 
> Let me know what you find.

Darin and I found the offending bug in gnome-xml. After fixing the bug, the
Spanish version of the Nautilus user's guide fails to parse correctly and
spews out a bunch of errors, but it doesn't hang, nor does it kill the
Nautilus build. Somebody else will get the honor of investigating why these
errors occur.

I've sent patches to Daniel Veillard. Hopefully he will respond quickly by
checking them in or asking us to. In the meantime, if this happens to anyone
else, you can apply this minimal patch to gnome-xml (stable branch):

Index: parserold.c
===================================================================
RCS file: /cvs/gnome/gnome-xml/Attic/parserold.c,v
retrieving revision 1.1.2.2
diff -u -p -u -r1.1.2.2 parserold.c
--- parserold.c    2001/03/26 07:52:39    1.1.2.2
+++ parserold.c    2001/03/26 18:53:15
@@ -5484,7 +5484,7 @@ xmlOldParseContent(xmlParserCtxtPtr ctxt
     while ((CUR != '<') || (NXT(1) != '/')) {
     const xmlChar *test = CUR_PTR;
     int cons = ctxt->input->consumed;
-    xmlChar tok = ctxt->token;
+    int tok = ctxt->token;
 
     /*
      * Handle  possible processed charrefs.


John


> 
> Laszlo






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]