bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #65980] [troff] emit diagnostic on unreadable input files


From: G. Branden Robinson
Subject: [bug #65980] [troff] emit diagnostic on unreadable input files
Date: Sat, 13 Jul 2024 03:05:25 -0400 (EDT)

Update of bug #65980 (group groff):

                Category:                 General => Core                   
                  Status:                    None => Confirmed              
                 Summary: emit (better) diagnostics on bad input files =>
[troff] emit diagnostic on unreadable input files

    _______________________________________________________

Follow-up Comment #1:

I perceive two problems here.

1.  What you reported.  The formatter should throw a diagnostic regarding
operands it can't work with.

2.  Use of preprocessors with empty inputs causes the formatter to produce
output that provokes complaints from output drivers.

Example:


$ echo . | tbl
.if !\n(.g .ab GNU tbl requires groff extensions; aborting
.do if !dTS .ds TS
.do if !dT& .ds T&
.do if !dTE .ds TE
.lf 1 -
.
$ echo . | tbl | nroff
grotty:<standard input>:(<standard input>):6: fatal error: 'V' command invalid
before first 'p' command


So what's the problem?


$ echo . | tbl | nroff -Z
x T utf8
x res 240 24 40
x init
x F -
x trailer
V2640
x stop


It looks the formatter is interpreting at least one of those requests as
productive of a node, and it probably shouldn't be.  I'll branch this second
issue off into a new ticket.


    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]