| 1 | Descriptionscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Description.: The infinite loop occurs in Text::WrapI18N when po4a tries to report an error in the PO files. |
| 2 | I could reproduce the problem in WrapI18N::wrap() and I propose the |
| 3 | attached patch to WrapI18N::wrap(). (A word should be placed on the |
| 4 | next line if it fits on this line, but the leading header must be taken |
| 5 | into account, thus $columns -> $columns - length $header) |
| 6 | Originscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Origin.: vendor |
| 7 | Bug-Debianscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Bug-Debian.: https://bugs.debian.org/470250scip-debian-bts debian-bts . . 470250: |
| 8 | Forwardedscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Forwarded.: unknown |
| 9 | Authorscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Author.: Nicolas François <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 10 | Reviewed-byscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Reviewed-by.: gregor herrmann <[email protected]> |
| 11 | Last-Updatescip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/patches/`01-470250-WrapI18N.pm.patch`#Last-Update.: 2019-03-21 |
| 12 | |
| 13 | --- a/WrapI18N.pmscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/upstream/`WrapI18N.pm`: 2003-06-25 11:14:25.000000000 +0200 |
| 14 | +++ b/WrapI18N.pmscip-debian debian libtext-wrapi18n-perl 0.06-11 libtext-wrapi18n-perl/upstream/`WrapI18N.pm`: 2008-03-13 02:04:02.628000837 +0100 |
| 15 | @@ -88,7 +88,7 @@ sub wrap { |
| 16 | $len = 0; |
| 17 | $text = $top2 . $text; |
| 18 | $word = ''; $wlen = 0; |
| 19 | - } elsif ($wlen + $w <= $columns) { |
| 20 | + } elsif ($wlen + $w <= $columns - length ($top2)) { |
| 21 | # the current word is sent to next line |
| 22 | $out .= $separator; |
| 23 | $len = 0; |