Package: libterm-readkey-perl
Version: 2.21-1.3
Severity: normal

Hello,

the documentation of the GetTerminalSize function reads:

  Returns either an empty array if this operation is unsupported, or a
  four element array containing[...]

The source code reads (at the end of this function):

        if(@results<4) {
                die "Unable to get Terminal Size.".join("", map(" The $_ didn't 
work.",@fail));
        }

        @results;
   
So, if you don't manage to fill this damn array, you die(), which is not
what was documented. This bug caused #300395 on my package (a FTBFS),
explaining that I didn't set the severity to wishlist. I had to
circumvent it using a crude eval block.

I'd prefer the code to be fixed to do what's documented instead of the
documentation to be fixed to stick to the code's behaviour, if I'm
asked. Changing the die() to a warn() in above code sniplet should do
the trick.

Thanks, Mt.


-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.7-1-686
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages libterm-readkey-perl depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  perl                        5.8.4-6      Larry Wall's Practical Extraction 
ii  perl-base [perlapi-5.8.0]   5.8.4-6      The Pathologically Eclectic Rubbis

-- no debconf information


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

Reply via email to