URL:
<https://savannah.gnu.org/bugs/?64439>
Summary: .chop does not treat a .char definition atomically
Group: GNU roff
Submitter: barx
Submitted: Mon 17 Jul 2023 08:14:26 PM CDT
Category: Core
Severity: 3 - Normal
Item Group: Incorrect behaviour
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 17 Jul 2023 08:14:26 PM CDT By: Dave <barx>
Reproducer airlifted in from bug #64101:
$ 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
The less-than-illuminating diagnostic wording is #64101's subject.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64439>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/