From k.heinz at janacht.kh-22.de Sun Jan 13 23:17:26 2008 Content-Type: multipart/mixed; boundary="===============3942487927983721947==" MIME-Version: 1.0 From: Klaus Heinz To: devel at lists.po4a.org Subject: [Po4a-devel] make test failure in t/20-sgml.t Date: Mon, 14 Jan 2008 00:17:11 +0100 Message-ID: <20080113231711.GB24740@silence.homedns.org> --===============3942487927983721947== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I did a "make test" for po4a 0.32 on NetBSD and see a failure in test 4/4 of t/20-sgml.t. Running "perl -I lib t/20-sgml.t" I see: 1..4 ok 1 - gettextize well simple xml documents runs ok 2 - gettextize well simple xml documents returns what is expected ok 3 - normalisation test runs --- data-20/test2.pot 2007-08-15 22:55:53.000000000 +0200 +++ tmp/po4a-normalize.po 2008-01-13 23:59:09.000000000 +0100 @@ -50,12 +50,12 @@ msgstr "" = # type: -#: ../data-20/test2.sgml:23 +#: ../data-20/test2.sgml:22 msgid "2004, 2007" msgstr "" = # type: -#: ../data-20/test2.sgml:23 +#: ../data-20/test2.sgml:22 #, no-wrap msgid "&dhusername; and &dhuusername;" msgstr "" not ok 4 - normalisation test returns what is expected # Failed test 'normalisation test returns what is expected' # at t/20-sgml.t line 65. # Failed (retval=3D256) on: # diff -u -I '^# SOME' -I '^# Test' -I '^"POT-Creation-Date: ' -I # '^"Content-Transfer-Encoding:' data-20/test2.pot # tmp/po4a-normalize.po&& diff -u -I '^# SOME' -I '^# Test' -I # '^"POT-Creation-Date: ' -I '^"Content-Transfer-Encoding:' # data-20/test2-normalized.sgml tmp/po4a-normalize.output # Was created with: # perl -I../lib cd tmp && perl ../../po4a-normalize -f sgml # ../data-20/test2.sgml # Looks like you failed 1 test of 4. Does this happen on Debian? The result of running the second part of test 4 manually looks incorrect as well: $ diff -u -I '^# SOME' -I '^# Test' -I '^"POT-Creation-Date: ' -I \ '^"Content-Transfer-Encoding:' data-20/test2-normalized.sgml \ tmp/po4a-normalize.output --- data-20/test2-normalized.sgml 2007-08-15 22:55:53.000000000 +02= 00 +++ tmp/po4a-normalize.output 2008-01-13 23:59:09.000000000 +0100 @@ -21,18 +21,14 @@ &dhdate; = - - - - - Help Options: - + + Show help options. Again, do you see something similar on Debian with this test? If it's any help, I am using po4a 0.32 with perl 5.8.8, gettext-1.05, SGMLSpm-1.03ii, TermReadKey-2.30, Text-WrapI18N-0.06, Text-CharWidth-0.04. ciao Klaus Heinz --===============3942487927983721947==-- From nicolas.francois at centraliens.net Mon Jan 14 00:31:52 2008 Content-Type: multipart/mixed; boundary="===============0324185914057446945==" MIME-Version: 1.0 From: =?utf-8?q?Nicolas_Fran=C3=A7ois_=3Cnicolas=2Efrancois_at_centraliens=2Ene?= =?utf-8?q?t=3E?= To: devel at lists.po4a.org Subject: Re: [Po4a-devel] make test failure in t/20-sgml.t Date: Mon, 14 Jan 2008 01:31:46 +0100 Message-ID: <20080114003146.GA21896@nekral.nekral.homelinux.net> In-Reply-To: 20080113231711.GB24740@silence.homedns.org --===============0324185914057446945== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi, I cannot reproduce it on Debian. What is the output of nsgmls -p t/data-20/test2-normalized.sgml and nsgmls -p t/data-20/test2.sgml The output should be empty (and commands should be successful). If it is not the case, the problem is probably that you are missing the docbook sgml DTD Best Regards, -- = Nekral --===============0324185914057446945==-- From k.heinz at janacht.kh-22.de Mon Jan 14 23:40:26 2008 Content-Type: multipart/mixed; boundary="===============2781665919377022819==" MIME-Version: 1.0 From: Klaus Heinz To: devel at lists.po4a.org Subject: Re: [Po4a-devel] make test failure in t/20-sgml.t Date: Tue, 15 Jan 2008 00:40:06 +0100 Message-ID: <20080114234006.GC2159@silence.homedns.org> In-Reply-To: 20080114003146.GA21896@nekral.nekral.homelinux.net --===============2781665919377022819== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Nicolas Fran=C3=A7ois wrote: > The output should be empty (and commands should be successful). First I got errors from nsgmls but... > If it is not the case, the problem is probably that you are missing the > docbook sgml DTD ... this reminded me to use export SGML_CATALOG_FILES=3D/usr/pkg/share/sgml/catalog = which produced the desired empty output. Unfortunately, using this variable for the test made nsgmls throw a core dump :-/ Which version of nsgmls do you use? Mine came from the jade-1.2.1 package. So one issue solved, another popped up. Thanks for your help. ciao Klaus --===============2781665919377022819==-- From nicolas.francois at centraliens.net Tue Jan 15 00:14:03 2008 Content-Type: multipart/mixed; boundary="===============4890989303416967467==" MIME-Version: 1.0 From: =?utf-8?q?Nicolas_Fran=C3=A7ois_=3Cnicolas=2Efrancois_at_centraliens=2Ene?= =?utf-8?q?t=3E?= To: devel at lists.po4a.org Subject: Re: [Po4a-devel] make test failure in t/20-sgml.t Date: Tue, 15 Jan 2008 01:14:00 +0100 Message-ID: <20080115001400.GA17515@nekral.nekral.homelinux.net> In-Reply-To: 20080114234006.GC2159@silence.homedns.org --===============4890989303416967467== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Tue, Jan 15, 2008 at 12:40:06AM +0100, k.heinz(a)janacht.kh-22.de wrote: > = > export SGML_CATALOG_FILES=3D/usr/pkg/share/sgml/catalog = > = > which produced the desired empty output. > = > Unfortunately, using this variable for the test made nsgmls throw a > core dump :-/ Is it nsgmls or po4a which core dumps? (you can try "onsgmls -l -E 0 -wno-valid < {the SGML file}") > Which version of nsgmls do you use? Mine came from the jade-1.2.1 > package. The debian sp package uses a modified jade-1.2.1 (the version of the sp package is 1.3.4-1.2.1-47 (seems to be a mix of jade-1.2.1 and a version 1.3.4). 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) > So one issue solved, another popped up. I hope you went one step further;) Cheers, -- = Nekral --===============4890989303416967467==-- From k.heinz at janacht.kh-22.de Tue Jan 15 01:13:22 2008 Content-Type: multipart/mixed; boundary="===============2189985245250929062==" MIME-Version: 1.0 From: Klaus Heinz To: devel at lists.po4a.org Subject: Re: [Po4a-devel] make test failure in t/20-sgml.t Date: Tue, 15 Jan 2008 02:13:07 +0100 Message-ID: <20080115011307.GD2159@silence.homedns.org> In-Reply-To: 20080115001400.GA17515@nekral.nekral.homelinux.net --===============2189985245250929062== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Nicolas Fran=C3=A7ois 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 --===============2189985245250929062==--