[bug #68449] [grops] should clear line number after it finishes reading its input

"G. Branden Robinson" <[email protected]> Sat, 13 Jun 2026 09:57:34 -0400 (EDT)
Newsgroups gmane.comp.printing.groff.bugs
Message-ID <[email protected]>
URL:
  <https://savannah.gnu.org/bugs/?68449>

                 Summary: [grops] should clear line number after it finishes
reading its input
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sat 13 Jun 2026 01:57:29 PM UTC
                Category: Driver grops
                Severity: 2 - Minor
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 13 Jun 2026 01:57:29 PM UTC By: G. Branden Robinson <gbranden>
In the event one gets diagnostic messages from _grops_ when its done with its
input stream--at which point its PostScript resource manager "psrm.cpp" can
still have much to do--those diagnostics report a line number of the maximum
line number of the input "grout" plus 1.  This is misleading nonsense.

_grops_ should reset the line number to zero when its `do_file()` finishes its
last meal.  _libgroff_'s diagnostic functions interpret that to mean that no
line number applies to the reported message.

Other output drivers should be inspected for the same problem.  I think
_grotty_ already does the right thing.







    _______________________________________________________

Reply to this item at:

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

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCai1hzgAKCRCqLAuaBUf3
TjlkAP9PYpKnOacPhWfgcdUUyX4Jdro6fMc3NH93BWTuhPufSgEAvbVcfX0sr7Lw
+QJS8spt3I4CdXyNruzwXpM/zNBucAo=
=rcX1
-----END PGP SIGNATURE-----