Update of bug #67746 (group groff):

                  Status:             In Progress => Fixed
             Open/Closed:                    Open => Closed
         Planned Release:                    None => 1.24.0

    _______________________________________________________

Follow-up Comment #2:


commit 7c025fb84bfa045af24231ece3940865e125357f
Author: G. Branden Robinson <[email protected]>
Date:   Sun Nov 30 03:33:40 2025 -0600

    [troff]: Fix Savannah #67746 (`\s` delim diag).
    
    * src/roff/troff/input.cpp (read_size): Clarify diagnostic when an `\s`
      escape sequence that is bracketed or delimited (a GNU extension)
      contains an invalid numeric expression.  Describe what we were
      expecting and what we got instead.
    
    Fixes <https://savannah.gnu.org/bugs/?67746>.  Problem observable since
    groff 1.22.3 and appears to date back to groff's birth.
    
    Illustration:
    $ printf '\\s"1a"\n' | ~/groff-1.22.3/bin/groff -a
    <standard input>:1: missing closing delimiter
    <beginning of page>
    "
    $ printf '\\s"1a"\n' | ~/groff-1.22.4/bin/groff -a
    troff: <standard input>:1: missing closing delimiter
    <beginning of page>
    "
    $ printf '\\s"1a"\n' | ~/groff-1.23.0/bin/groff -a
    troff:<standard input>:1: error: missing closing delimiter in type size
escape sequence
    <beginning of page>
    "
    $ printf '\\s"1a"\n' | ./build/test-groff -a
    troff:<standard input>:1: error: closing delimiter does not match;
expected character '"', got character 'a'
    <beginning of page>
    "




    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to