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

                 Summary: [troff] issues multiple diagnostics for attempted
update of invalid register name
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Mon 08 Dec 2025 03:49:45 PM UTC
                Category: Core
                Severity: 3 - Normal
              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: Mon 08 Dec 2025 03:49:45 PM UTC By: G. Branden Robinson <gbranden>
Issue dates back to _groff_ 1.22.3 at least.

In this reproducer, we attempt to assign to a register named `a\%`, "a" with a
hyphenation control escape sequence after it.


$ printf '.nr a\\%% 42\n' | ~/groff-1.22.3/bin/groff -zww
<standard input>:1: `\%' is not allowed in a name
<standard input>:1: warning: numeric expression expected (got `\%')
$ printf '.nr a\\%% 42\n' | ~/groff-1.22.4/bin/groff -zww
troff: <standard input>:1: '\%' is not allowed in a name
troff: <standard input>:1: warning: numeric expression expected (got '\%')
$ printf '.nr a\\%% 42\n' | ~/groff-1.23.0/bin/groff -zww
troff:<standard input>:1: error: an escaped '%' is not allowed in an
identifier
troff:<standard input>:1: warning: expected numeric expression, got an escaped
'%'









    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to