Text::Wrap dies on '=.'

Bug #1358930 reported by Dave Odell
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
flexbackup (Ubuntu)
Confirmed
Undecided
Unassigned
perl (Ubuntu)
Confirmed
Undecided
Unassigned

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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in perl (Ubuntu):
status: New → Confirmed
Revision history for this message
German de la Cruz (gerdlc) wrote :

Changing Wrap.pm with the link you provided solves the problem

Revision history for this message
German de la Cruz (gerdlc) wrote :

The bug reported avoid flexbackup to work properly

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in flexbackup (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.