Endless loop when wrapping unbreakable words
Bug #34182 reported by
Andrew Pam
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libtext-wrapi18n-perl (Debian) |
Fix Released
|
Unknown
|
|||
libtext-wrapi18n-perl (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Executing the following perl code will enter an endless loop:
perl -MText::WrapI18N -e'print wrap("", " ", " Thisisaverylong
The bug does not occur when using Text::Wrap instead. To cause the bug, both the second parameter and the string to be wrapped must start with a space. The string to be wrapped must contain at least one word longer than the wrap length (defaults to 72 characters).
Changed in libtext-wrapi18n-perl: | |
status: | Unconfirmed → Confirmed |
Changed in libtext-wrapi18n-perl (Debian): | |
status: | Unknown → Fix Released |
To post a comment you must log in.
This appears to be another instance of the linked Debian bug; at any rate, the same patch fixes it.