Update of bug #65320 (group groff):

                Category:                 General => Core
                  Status:                    None => Duplicate
             Open/Closed:                    Open => Closed
                 Summary: doesn't guard control characters when emitting
bookmark diversion in PDF => [troff] doesn't guard control characters when
emitting bookmark diversion in PDF

    _______________________________________________________

Follow-up Comment #8:

Deri points out in comment #6 that we (probably) fixed this with a belt _and_
suspenders.

As Deri notes, "pdf.tmac" no longer uses the `asciify` request at all...


$ grep asciify tmac/pdf.tmac || echo NO MATCH
NO MATCH


...and my reproducer from comment 2 to bug #65322 was made un-reproductive by
a change two years ago.  Deri came up with another reproducer in bug #66653,
but that ticket is resolved as fixed.

The `chop` request is known to still be troublesome when used recklessly--see
bug #65322 and bug #67453--but `chop` is not implicated in **this** ticket.  

So let's call this a duplicate of bug #66653.

In any case, it's resolved.  Here's Alex's original reproducer failing with
_groff_ 1.23.0 and working with _groff_ 1.24.0.


$ cat ATTIC/65320.man
.\" by Alex Colomar
.TH dot 7 2024-02-16 dots-in-SS
.SH Foo
.SS . and ..
\&. and .. are special files.
$ ~/groff-1.23.0/bin/groff -a -man -Tpdf ATTIC/65320.man
<beginning of page>
x X ps:exec [/Dest /pdf:bm1 /View [/FitH -31000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm1 /Title (dot(7)) /Level 1 /OUT pdfmark
dot(7) Miscellaneous Information Manual dot(7)
x X ps:exec [/Dest /pdf:bm2 /View [/FitH -67000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm2 /Title (Foo) /Level 2 /OUT pdfmark
Foo 
troff:ATTIC/65320.man:4: warning: macro 'and' not defined (possibly missing
space after 'an')
x X ps:exec [/Dest /pdf:bm3 /View [/FitH -79000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm3 /Title () /Level 3 /OUT pdfmark
 . and .. 
 . and .. are special files.
dots-in-SS 2024-02-16 1
$ ~/groff-1.24.0/bin/groff -a -man -Tpdf ATTIC/65320.man
<beginning of page>
x X ps:exec [/Dest /dot(7) /View [/FitH -26000 u] /DEST pdfmark
x X ps:exec [/Dest /dot(7) /Title (dot(7)) /Level 1 /OUT pdfmark
dot(7) Miscellaneous Information Manual dot(7)
x X pdf: markrestart
x X ps:exec [/Dest /pdf:bm2 /View [/FitH -74000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm2 /Title (Foo) /Level 2 /OUT pdfmark
Foo 
x X ps:exec [/Dest /pdf:bm3 /View [/FitH -86000 u] /DEST pdfmark
x X ps:exec [/Dest /pdf:bm3 /Title (. and ..) /Level 3 /OUT pdfmark
 . and .. 
 . and .. are special files.
x X pdf: marksuspend
dots-in-SS 2024-02-16 1





    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65320>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to