Package: po4a
Version: 0.42-2
Severity: normal
Tags: patch upstream
Hello there,
Yes, that's true, I'm using po4a again for my own use. I'm very pleased to see
that you guys keep up with the good work and that po4a is still alive. This may
even motivate me to come back and fix a few bugs with you guys.
Meanwhile, I did a typo in the HTML file I wanted to translate and typed "<"
alone, at the end of a line. The error message I got was:
po4a::xml: Unknown tag type: <
Not quite informative, actually. So I wrote the attached patch to make it more
informative, and here we are.
Thanks for commiting this very simple patch in the next release of po4a, and
please please, keep up the good work!
Bye, Mt.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages po4a depends on:
ii gettext 0.18.3-1
ii libsgmls-perl 1.03ii-32
ii perl 5.14.2-21
ii perl-modules 5.14.2-21
ii sp 1.3.4-1.2.1-47.2
Versions of packages po4a recommends:
ii liblocale-gettext-perl 1.05-7+b1
ii libterm-readkey-perl 2.30-4+b2
ii libtext-wrapi18n-perl 0.06-7
po4a suggests no packages.
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/share/perl5/Locale/Po4a/Xml.pm (from po4a package)
--
Si les grands esprits se rencontrent, les petits esprits, eux, se cognent.
--- /usr/share/perl5/Locale/Po4a/Xml.pm.orig 2013-08-04 08:54:36.896217290 +0200
+++ /usr/share/perl5/Locale/Po4a/Xml.pm 2013-08-04 08:55:38.873013265 +0200
@@ -1037,7 +1037,8 @@
if (!$found) {
#It should never enter here, unless you undefine the most
#general tags (as <...>)
- die "po4a::xml: Unknown tag type: ".$line."\n";
+ chomp $line;
+ die $ref.": Unknown tag type: ".$line."\n";
} else {
return $i;
}