Package: po4a
Version: 0.32-1
Severity: wishlist
Tags: patch

The man module should warn or even die on unrecognised '<' sequences in
msgstr strings. The following patch implements this:


--- /usr/share/perl5/Locale/Po4a/Man.old.pm     2007-08-26 16:41:31.000000000 
+0200
+++ /usr/share/perl5/Locale/Po4a/Man.pm 2007-11-12 00:06:41.000000000 +0100
@@ -1079,6 +1079,8 @@
             $str.= "\n$t3";
         }
     }
+    (my $str2 = $str) =~ s/E<[gl]t>//g;
+    die wrap_ref_mod($ref||$self->{ref}, "po4a::man", dgettext("po4a","Unknown 
'<' or '>' sequence. Faulty message: %s"),$str) if $str2 =~ /[<>]/;
     $str =~ s/E<gt>/>/mg;
     $str =~ s/E<lt>/</mg;
     # Don't do that, because we'll go into trouble if previous line was .TP


Best Regards,
robert

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)
Shell: /bin/sh linked to /bin/pdksh

Versions of packages po4a depends on:
ii  gettext                   0.16.1-2       GNU Internationalization utilities
ii  libsgmls-perl             1.03ii-31      Perl modules for processing SGML p
ii  perl                      5.8.8-11.1     Larry Wall's Practical Extraction 
ii  perl-modules              5.8.8-11.1     Core Perl modules
ii  sp                        1.3.4-1.2.1-47 James Clark's SGML parsing tools

Versions of packages po4a recommends:
ii  liblocale-gettext-perl        1.05-1     Using libc functions for internati
ii  libterm-readkey-perl          2.30-3     A perl module for simple terminal 
ii  libtext-wrapi18n-perl         0.06-5     internationalized substitute of Te

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to