[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64101] improve diagnostic for bad string argument
From: |
G. Branden Robinson |
Subject: |
[bug #64101] improve diagnostic for bad string argument |
Date: |
Mon, 24 Apr 2023 04:03:14 -0400 (EDT) |
Follow-up Comment #1, bug #64101 (project groff):
I just ran into the same diagnostic! We may be poking our fingers into
similar things.
But in my case, I got it on legitimate input.
I'll file a separate bug for the incorrect diagnosis (rather than the wording)
but wanted to record it here as well.
$ cat ATTIC/defchar.groff
.char \[BS] BELL LABS
.ds mystr ABC\[BS]
.nf
\[rs][BS] -> \[BS]
mystr -> \*[mystr]
.chop mystr
mystr -> \*[mystr]
.pl \n[nl]u
$ ./build/test-groff -Tascii ATTIC/defchar.groff
troff:ATTIC/defchar.groff:7: error: a newline character is not allowed in an
escape sequence parameter
\[BS] -> BELL LABS
mystr -> ABCBELL LABS
mystr -> ABC
This problem is not new to groff 1.23.0; it's in 1.22.4, with old language.
$ nroff ATTIC/defchar.groff
troff: ATTIC/defchar.groff:7: a newline character is not allowed in an escape
name
\[BS] ‐> BELL LABS
mystr ‐> ABCBELL LABS
mystr ‐> ABC
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64101>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/