Package: po4a Version: 0.29-1 Severity: normal Tags: patch Already reported as: http://lists.alioth.debian.org/pipermail/po4a-devel/2007-February/001426.html
Hello, Thanks for the nice tool! I encountered a minor problem when using it in GNU parted when I ran "make >& log &". It caused the build to hang. Here's a stand-alone demo: Before the fix, it hangs: $ touch x.1; po4a-updatepo -f man -m x.1 -p x.pot >& log & [6] 1383 $ [6] + suspended (tty output) po4a-updatepo -f man -m x.1 -p x.pot >&log With the following patch, it completes as you would expect: 2007-02-14 Jim Meyering <jim at meyering.net> Don't hang when running in background with redirected stdout. * lib/Locale/Po4a/Common.pm (BEGIN): Don't try to determine output terminal size when STDOUT is not a terminal. Index: lib/Locale/Po4a/Common.pm =================================================================== RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/Common.pm,v retrieving revision 1.14 diff -u -p -r1.14 Common.pm --- lib/Locale/Po4a/Common.pm 6 Dec 2005 16:32:06 -0000 1.14 +++ lib/Locale/Po4a/Common.pm 15 Feb 2007 08:01:30 -0000 @@ -1,7 +1,7 @@ # Locale::Po4a::Common -- Common parts of the po4a scripts and utils # $Id: Common.pm,v 1.14 2005/12/06 16:32:06 jvprat-guest Exp $ # -# Copyright 2005 by Jordi Vilalta <[EMAIL PROTECTED]> +# Copyright 2005, 2007 by Jordi Vilalta <[EMAIL PROTECTED]> # # This program is free software; you may redistribute it and/or modify it # under the terms of GPL (see COPYING). @@ -35,7 +35,7 @@ BEGIN { # Don't bother determining the wrap column if we cannot wrap. my $col=$ENV{COLUMNS}; - if (!defined $col) { + if (!defined $col && -t STDOUT) { my @term=eval "use Term::ReadKey; Term::ReadKey::GetTerminalSize()"; $col=$term[0] if (!$@); # If GetTerminalSize() failed we will fallback to a safe default. -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable'), (400, 'testing') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-3-amd64 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Versions of packages po4a depends on: ii gettext 0.16.1-1 GNU Internationalization utilities ii libsgmls-perl 1.03ii-31 Perl modules for processing SGML p ii perl 5.8.8-7 Larry Wall's Practical Extraction ii perl-modules 5.8.8-7 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]