URL:
  <https://savannah.gnu.org/bugs/?67747>

                 Summary: [troff] misleading diagnostic when `warnscale`
request given howlingly implausible argument
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sun 30 Nov 2025 10:46:37 AM UTC
                Category: Core
                Severity: 3 - Normal
              Item Group: Warning/Suspicious behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sun 30 Nov 2025 10:46:37 AM UTC By: G. Branden Robinson <gbranden>
This is another old one.

The input validation logic assumed that the user of the `warnscale` request
would at least _try_ to make some kind of sense.


$ printf '.warnscale \\|\n' | ~/groff-1.22.3/bin/groff -aww
<standard input>:1: warning: invalid scaling indicator `', using `i' instead
$ printf '.warnscale \\|\n' | ~/groff-1.22.4/bin/groff -aww
troff: <standard input>:1: warning: invalid scaling indicator '', using 'i'
instead
$ printf '.warnscale \\|\n' | ~/groff-1.23.0/bin/groff -aww
troff:<standard input>:1: warning: scaling unit '' invalid; using 'i' instead
$ printf '.warnscale \\|\n' | ~/groff-HEAD/bin/groff -aww
troff:<standard input>:1: warning: scaling unit '0' invalid; using 'i'
instead


(Why `0` in HEAD?  Because the `\|` escape sequence is not a character token,
and the validation logic assumed that what the user specified as the scaling
unit would be one.)







    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to