← Back to team overview

pkg-perl-maintainers team mailing list archive

[Bug 1427464] [NEW] Term::Prompt does not wrap prompts correctly because of a typo in the termwrap subroutine

 

Public bug reported:

The Term::Prompt module uses an internal subroutine named termwrap to
try and intelligently wrap the prompts based on the size of the
terminal.

The problem is that it has a typo on line 511 $Text::Wrap::Columns =
$width; should actually be $Text::Wrap::columns = $width;

Without this small change Text::Wrap never gets fed the real number of columns of the current terminal and all of the prompts
wrap early and look rather ugly depending on how large you set your terminal size. 

I have also filed a bug in CPAN at
https://rt.cpan.org/Public/Bug/Display.html?id=102472


Distributor ID: Ubuntu
Description:    Ubuntu 14.04.1 LTS
Release:        14.04
Codename:       trusty

libterm-prompt-perl:
  Installed: 1.04-1
  Candidate: 1.04-1
  Version table:
 *** 1.04-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
        100 /var/lib/dpkg/status

** Affects: libterm-prompt-perl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libterm-prompt-perl in Ubuntu.
https://bugs.launchpad.net/bugs/1427464

Title:
  Term::Prompt does not wrap prompts correctly because of a typo in the
  termwrap subroutine

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libterm-prompt-perl/+bug/1427464/+subscriptions


Follow ups

References