bugGNU roff - Bugs: bug #60661, addftinfo: fails to emit...

 
 

bug #60661: addftinfo: fails to emit diagnostic when option argument missing

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Mon 24 May 2021 02:24:07 AM UTC
   
 
Category:  Font - others/general Severity:  2 - Minor
Item Group:  Warning/Suspicious behaviour Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 24 May 2021 02:24:07 AM UTC, original submission:  

This came up in bug #60639.

I don't think lines 112-113 of src/utils/addftinfo/addftinfo.cpp work as intended.


    $ addftinfo -asc-height -body-depth 60
    usage: addftinfo [-v] [-param value] ... resolution unitwidth font
    $ addftinfo -body-depth 60 -asc-depth
    usage: addftinfo [-v] [-param value] ... resolution unitwidth font


The code should be emitting a complaint diagnostic before (or instead of) the usage message, but this doesn't happen.

Setting severity to "minor", both because the user can infer that they screwed up and because probably few people have any reason to use this utility these days.

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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-01-12 gbranden CategoryUtilities Font - others/general
        Item GroupIncorrect behaviour Warning/Suspicious behaviour

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code