[Po4a-devel] make test failure in t/20-sgml.t

Klaus Heinz k.heinz at janacht.kh-22.de
Tue Jan 15 01:13:07 UTC 2008


Nicolas François wrote:

> Is it nsgmls or po4a which core dumps?

Definitely nsgmls.

> (you can try "onsgmls -l -E 0 -wno-valid < {the SGML file}")

Doing this with nsgmls from jade 1.2.1 gives me the core dump.
The SGML file in /tmp/ where it chokes is a partly processed copy of
t/data-20/test2.sgml.
On the other hand, running all the tests with onsgmls from opensp 1.5.2
works without crashing, all tests passed.

> You can also use opensp (from the openjade sourceforge project) instead of
> sp (it works at least with opensp 1.5.2).
> (Just make sure po4a will resolve nsgmls in its PATH as the version of
> nsgmls you want to use)

opensp 1.5.2 installs the parser as onsgmls while jade uses the name
nsgmls. We need both of them (necessary for other packages) so renaming
is not an option.

Currently there seems to be no way of choosing which parser to use,
"nsgmls" is hard-coded in Sgml.pm. Is it possible to change this
situation with a tunable option at installation time?
While I might have come up with a patch for a Makefile.PL based on
Extutils::MakeMaker I am unfamiliar with Module::Build.

> I hope you went one step further;)

Yes, thank you :-)

ciao
     Klaus





More information about the Po4a-devel mailing list