Your message dated Fri, 22 May 2020 00:49:29 +0200
with message-id <20200521224929.GB15978@cafuron>
and subject line Re: po4a: master file set to - can process stdin
has caused the Debian Bug report #378625,
regarding po4a: master file set to - can process stdin
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
378625: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=378625
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: po4a
Version: 0.26-1
Severity: wishlist

Several commands could process stdin, here is a trivial patch.
Stdin could be used either for the master file or a PO file,
so a real solution requires a little bit more thinking.

Denis

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

Versions of packages po4a depends on:
ii  gettext                   0.14.6-1       GNU Internationalization utilities
ii  libsgmls-perl             1.03ii-31      Perl modules for processing SGML p
ii  perl                      5.8.8-6        Larry Wall's Practical Extraction 
ii  perl-modules              5.8.8-6        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
Index: po4a-gettextize
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a-gettextize,v
retrieving revision 1.36
diff -u -r1.36 po4a-gettextize
--- po4a-gettextize     13 Nov 2005 12:44:57 -0000      1.36
+++ po4a-gettextize     17 Jul 2006 20:44:51 -0000
@@ -194,7 +194,7 @@
 }
 # Check file existence
 foreach my $file (@masterfile, @locfile) {
-    -e $file || die wrap_msg(gettext("File %s does not exist."), $file);
+    $file eq '-' || -e $file || die wrap_msg(gettext("File %s does not 
exist."), $file);
 }
 
 # Declare the TransTractor parsers
Index: po4a-normalize
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a-normalize,v
retrieving revision 1.28
diff -u -r1.28 po4a-normalize
--- po4a-normalize      22 Sep 2005 21:51:49 -0000      1.28
+++ po4a-normalize      17 Jul 2006 20:44:51 -0000
@@ -137,7 +137,7 @@
 my $parser=Locale::Po4a::Chooser::new($type,%options);
 
 my $filename = shift || pod2usage(1);
--e $filename || die wrap_msg(gettext("File %s does not exist."), $filename);
+$filename eq '-' || -e $filename || die wrap_msg(gettext("File %s does not 
exist."), $filename);
 
 $parser->read($filename);
 $parser->{TT}{utf_mode} = 1;

--- End Message ---
--- Begin Message ---
Hello,

I don't think that passing - to process stdin is a good idea in po4a.

First of all, it uses two inputs, so the gain for the user would not
be really high, as the shell does not allow more than one stream of
input.

In addition, the master file name is used in the output, for the
references. One could say that this means that the requested feature
could still be useful for PO files, but I'm really unsure. I have the
feeling that using po4a is already difficult enough.

The final cut on this request is that we all forgot why this could be
useful since over a decade (no motivation was given in the original
report), so I think that we really can live without it.

Thanks for reporting -- I'm wondering where you are now, Denis ;)
Mt.

-- 
La liberté de penser s'arrête là où commence le droit du travail.
                     -- Laurence Parisot

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to