I looked at the commit log, apparently I add that patch with that comment some years ago when mirgrating to j701. If you examine the callback, you will find it is plausible but can fail in all OS because there is no gaurantee that a positve number inside a certain range cannot be a memory pointer or some rubbish. May be I can only tested it crashed under linux64.
For a more robust xml parser, pleae see the api/expact addon. (that won't work under j7 gtk either). Пт, 15 фев 2013, Thomas Costigliola писал(а): > David, I see what you mean. But IF64 is also true in windows, which is what > I am using, so it seems like a bug. > > It is working after changing that line to: > > SetCharacterDataHandler^:(-.IF64*.'Linux'-:UNAME) PARSER;cdcb 3 NB. crash > in linux64 > > Thanks. > > > On Fri, Feb 15, 2013 at 11:09 AM, David Ward Lambert <[email protected] > > wrote: > > > You're using a 64 bit linux system. character is disabled because it > > core dumps. > > sax.ijs: > > ... > > create=: 3 : 0 > > PARSER=: ParserCreate <<0 > > IGNOREWS=: 0 > > seterr'' > > SetElementHandler PARSER;(cdcb 3);(cdcb 2) > > SetCharacterDataHandler^:(-.IF64) PARSER;cdcb 3 NB. crash in linux64 > > ) > > > > > > > Date: Fri, 15 Feb 2013 10:27:22 -0500 > > > From: Thomas Costigliola <[email protected]> > > > To: J Programming Forum <[email protected]> > > > Subject: [Jprogramming] sax addon problem > > > Message-ID: > > > <CAC7yQgGf2AOxO+9H2hcMwtoaBfYLhDNAiG9YXg > > > [email protected]> > > > Content-Type: text/plain; charset=UTF-8 > > > > > > I am having a problem with the sax addon in J7. It seems like the > > > 'characters' callback is never called. Here is one of the examples > > > from the > > > wiki: > > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
