Your message dated Fri, 10 Feb 2006 07:17:06 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#307777: fixed in liblocale-maketext-lexicon-perl 0.53-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: liblocale-maketext-lexicon-perl
Version: 0.49-1
Severity: normal

Subject: liblocale-maketext-lexicon-perl: ::Run -f option non-working
Package: liblocale-maketext-lexicon-perl
Version: 0.49-1
Severity: normal
Tags: patch

Hi,

I am learning how to use Locale::Maketext for internationalizing my
application. I am using Template Toolkit and Locale::Maketext.

I use Locale::Maketext::Extract::Run to extract translatable strings.

Since I have multiple files to translate (it's a web application with a
lot of templates), I am using the -f option in the following way:

    (wrapped)
    perl /usr/share/doc/liblocale-maketext-lexicon-perl/examples/xgettext.pl
    -f - -o po/en.po < list

but no file gets processed.

The cause is that the filenames aren't chomp'ed when read from supplied
file and of cource none of them is found.

The one-line-patch (attached) adds the missing chomp and -f works again.


Thanks for packaginh Locale::Maketext::Lexicon,
dam

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11+dam.2
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)

Versions of packages liblocale-maketext-lexicon-perl depends on:
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
ii  perl-modules [liblocale-maket 5.8.4-8    Core Perl modules

-- no debconf information

*** /tmp/chomp.patch
--- /usr/share/perl5/Locale/Maketext/Extract/Run.pm     2005-04-13 
18:45:19.000000000 +0300
+++ /usr/share/perl5/Locale/Maketext/Extract/Run.pm.patched     2005-05-05 
15:17:36.000000000 +0300
@@ -37,6 +37,7 @@
     foreach my $file (@{$opts{f}||[]}) {
         open FILE, $file or die "Cannot open $file: $!";
         while (<FILE>) {
+            chomp;
             push @ARGV, $_ if -r and !-d;
         }
     }

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11+dam.2
Locale: LANG=bg_BG.UTF-8, LC_CTYPE=bg_BG.UTF-8 (charmap=UTF-8)

Versions of packages liblocale-maketext-lexicon-perl depends on:
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 
ii  perl-modules [liblocale-maket 5.8.4-8    Core Perl modules

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: liblocale-maketext-lexicon-perl
Source-Version: 0.53-2

We believe that the bug you reported is fixed in the latest version of
liblocale-maketext-lexicon-perl, which is due to be installed in the Debian FTP 
archive:

liblocale-maketext-lexicon-perl_0.53-2.diff.gz
  to 
pool/main/libl/liblocale-maketext-lexicon-perl/liblocale-maketext-lexicon-perl_0.53-2.diff.gz
liblocale-maketext-lexicon-perl_0.53-2.dsc
  to 
pool/main/libl/liblocale-maketext-lexicon-perl/liblocale-maketext-lexicon-perl_0.53-2.dsc
liblocale-maketext-lexicon-perl_0.53-2_all.deb
  to 
pool/main/libl/liblocale-maketext-lexicon-perl/liblocale-maketext-lexicon-perl_0.53-2_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Stephen Quinney <[EMAIL PROTECTED]> (supplier of updated 
liblocale-maketext-lexicon-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 10 Feb 2006 14:56:59 +0000
Source: liblocale-maketext-lexicon-perl
Binary: liblocale-maketext-lexicon-perl
Architecture: source all
Version: 0.53-2
Distribution: unstable
Urgency: low
Maintainer: Stephen Quinney <[EMAIL PROTECTED]>
Changed-By: Stephen Quinney <[EMAIL PROTECTED]>
Description: 
 liblocale-maketext-lexicon-perl - Lexicon-handling backends for 
"Locale::Maketext"
Closes: 307777
Changes: 
 liblocale-maketext-lexicon-perl (0.53-2) unstable; urgency=low
 .
   * Locale/Maketext/Extract/Run.pm - patched to fix issue "::Run -f option
     non-working, closes: #307777, thanks to Damyan Ivanov for the patch.
   * Added build dependency on dpatch.
Files: 
 e8dc894828638738662768fbc07786f5 762 perl optional 
liblocale-maketext-lexicon-perl_0.53-2.dsc
 39604f45f21ed06cdf9e5bbb40b98841 3167 perl optional 
liblocale-maketext-lexicon-perl_0.53-2.diff.gz
 14c67b2ba907a6d3c4ff0bc2e6bfc1a1 41190 perl optional 
liblocale-maketext-lexicon-perl_0.53-2_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD7KrUITGblEwaW+URAgCyAKDKNaoHujFUVAZ1xF08kmZAsQDLvgCeOUWd
UCPcjT4aGAcN9km1J+l9M9U=
=Xqgg
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to