← Back to team overview

touch-packages team mailing list archive

[Bug 1358930] [NEW] Text::Wrap dies on '=.'

 

Public bug reported:

Here's a brief test case:
#!/usr/bin/perl
require Text::Wrap;
$Text::Wrap::columns = 2;
print "$Text::Wrap::VERSION $Text::Wrap::SUBVERSION\n";
print Text::Wrap::wrap('', '', '=.');

When I run on Trusty, I get:
$ ./wrapper.pl
2012.0818 modern
This shouldn't happen at /usr/share/perl/5.18/Text/Wrap.pm line 84.

FWIW, when I ran the same test program with the latest version of Wrap.pm from <http://api.metacpan.org/source/MUIR/Text-Tabs+Wrap-2013.0523/lib.modern/Text/Wrap.pm>, it worked a little better:
$ ./wrapper.pl
2013.0523 modern
=
.

I have a sneaking suspicion that the 2013/04/26 version (see
https://metacpan.org/changes/distribution/Text-Tabs+Wrap) fixes this,
though I haven't verified that.

** Affects: perl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to perl in Ubuntu.
https://bugs.launchpad.net/bugs/1358930

Title:
  Text::Wrap dies on '=.'

Status in “perl” package in Ubuntu:
  New

Bug description:
  Here's a brief test case:
  #!/usr/bin/perl
  require Text::Wrap;
  $Text::Wrap::columns = 2;
  print "$Text::Wrap::VERSION $Text::Wrap::SUBVERSION\n";
  print Text::Wrap::wrap('', '', '=.');

  When I run on Trusty, I get:
  $ ./wrapper.pl
  2012.0818 modern
  This shouldn't happen at /usr/share/perl/5.18/Text/Wrap.pm line 84.

  FWIW, when I ran the same test program with the latest version of Wrap.pm from <http://api.metacpan.org/source/MUIR/Text-Tabs+Wrap-2013.0523/lib.modern/Text/Wrap.pm>, it worked a little better:
  $ ./wrapper.pl
  2013.0523 modern
  =
  .

  I have a sneaking suspicion that the 2013/04/26 version (see
  https://metacpan.org/changes/distribution/Text-Tabs+Wrap) fixes this,
  though I haven't verified that.

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


Follow ups

References