URL: <https://savannah.gnu.org/bugs/?66481>
Summary: \w|x| no longer works in bleeding-edge groff Group: GNU roff Submitter: eggert Submitted: Sat 23 Nov 2024 06:08:29 PM PST Category: General 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: Sat 23 Nov 2024 06:08:29 PM PST By: Paul Eggert <eggert> The following shell command: printf '\\w|x|\n' | nroff | uniq outputs "24" in traditional (Solaris 10) nroff, as well as in groff 1.23.0. However, bleeding-edge groff outputs the following diagnostic: troff:<standard input>:1: error: character '|' is not allowed as a delimiter and then outputs "x|" to standard output. This behavior is incorrect, as many longstanding troff documents use "\w|X|" when X might contain an apostrophe. This bug was apparently introduced by the bug#66009 fix, which overenthusiastically banned '|' as a delimiter even in non-numeric contexts, where '|' works just fine and is commonly used. I found out about this groff bug when Bjarni Ingi Gislason reported that the man page for GNU grep stopped working <https://bugs.gnu.org/74502>. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?66481> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature