bugGNU roff - Bugs: bug #62656, troff doesn't warn when a bogus...

 
 

bug #62656: troff doesn't warn when a bogus font name is selected

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Mon 20 Jun 2022 06:58:04 PM UTC
   
 
Category:  Core Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 21 Jun 2022 06:29:03 PM UTC, comment #1: 


commit 1986da1d4bb11dc0421e004b153729b3d2a2a3ca
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Jun 20 14:15:38 2022 -0500

    [troff]: Warn if nonexistent font name selected.

    * src/roff/troff/env.cpp (font_change):
    * src/roff/troff/input.cpp (token::next): Warn upon selection of a
      nonexistent font name.

    Fixes <https://savannah.gnu.org/bugs/?62656>.

    Also annotate a null pointer to ease any future transition to C++11,
    which defines a keyword for it.


G. Branden Robinson <gbranden>
Group administrator
Mon 20 Jun 2022 06:58:04 PM UTC, original submission:  

Affects groff 1.22.4.


$ nroff -ww
.ft 200
a
.ft BOGUS
b
.pl \n[nl]u
a b


We should get warnings about selection of nonexistent fonts, even without `-ww`, but we don't.

groff Git HEAD does cope with the bogus mounting position case.


$ ./build/test-groff -Tascii -ww
.ft 200
troff:<standard input>:1: warning: no font mounted at position 200
a
.ft BOGUS
b
.pl \n[nl]u
a b


...but not the bogus font name.

Fix this.

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-21 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code