bug-groff
[Top][All Lists]
Advanced

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

[bug #63218] [eqn] confusing diagnostics with some input characters


From: G. Branden Robinson
Subject: [bug #63218] [eqn] confusing diagnostics with some input characters
Date: Sat, 15 Oct 2022 12:21:56 -0400 (EDT)

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

                 Summary: [eqn] confusing diagnostics with some input
characters
                 Project: GNU troff
               Submitter: gbranden
               Submitted: Sat 15 Oct 2022 04:21:54 PM UTC
                Category: Preprocessor eqn
                Severity: 3 - Normal
              Item Group: Warning/Suspicious behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 15 Oct 2022 04:21:54 PM UTC By: G. Branden Robinson <gbranden>
eqn should not attempt to write unprintable characters in diagnostics. 
Affects groff 1.22.4.


$ `printf 'eqn -dx\032\n'` >/dev/null
eqn: bad delimiter ''
$ `printf 'eqn -dx\032\n'` 2>&1 >/dev/null | od -c
                                                1.   e   q   n   :       b   a  
 d       d   e   l   i   m   i   t
0000020   e   r       ' 032   '  \n
0000027



$ printf '\001 x = x + 1\n' | `printf 'eqn -d\001\177\n'` > /dev/null
eqn:<standard input>:2: fatal error: unterminated '' at line 1, looking for
''
$ printf '\001 x = x + 1\n' | `printf 'eqn -d\001\177\n'` 2>&1 >/dev/null | od
-c
                                                1.   e   q   n   :   <   s   t  
 a   n   d   a   r   d       i   n
0000020   p   u   t   >   :   2   :       f   a   t   a   l       e   r
0000040   r   o   r   :       u   n   t   e   r   m   i   n   a   t   e
0000060   d       ' 001   '       a   t       l   i   n   e       1   ,
0000100       l   o   o   k   i   n   g       f   o   r       ' 177   '
0000120  \n
0000121








    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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