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: <copyright><holder>
-#: ../data-20/test2.sgml:23
+#: ../data-20/test2.sgml:22
msgid "<year>2004, 2007</year>"
msgstr ""
# type: <holder></holder>
-#: ../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=256) 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 +0200
+++ tmp/po4a-normalize.output 2008-01-13 23:59:09.000000000 +0100
@@ -21,18 +21,14 @@
&dhdate;
</refentryinfo>
- <refnamediv>
- <refname></refname>
- <refpurpose></refpurpose>
- </refnamediv>
<refsect1>
- <title></title>
<para>
Help Options:
</para>
<variablelist>
<varlistentry>
- <term><option>-?</option>
<option>--help</option></term>
+ <term>
+<option>-?</option> <option>--help</option></term>
<listitem>
<para>
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