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

                 Summary: .Y register contains nonnumeric content
                   Group: GNU roff
               Submitter: barx
               Submitted: Thu 12 Nov 2026 11:58:11 PM CST
                Category: Formatter
                Severity: 2 - Minor
              Item Group: Incorrect behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 12 Nov 2026 11:58:11 PM CST By: Dave <barx>
The .Y register is documented as "Revision number of the running GNU 'troff'
formatter," and it is not documented as a string-valued register, meaning the
user should be able to expect it to contain a number.  This is how it has
worked until 1.25.0.  I will risk Branden's wrath by going so far as to call
this a regression.

$ groff << EOF
> .tm \n[.Y]
> .nr mm \n[.Y]
> EOF
0-modified
troff:<standard input>:2: error: numeric expression containing character 'm'
is invalid
$ groff-1.24 --version | head -1 
GNU groff version 1.24.0.8-7152a-modified
$ echo '.tm \n[.Y]' | groff-1.24
0









    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to