From a727925b5a17f06e489e4c445ff5642f086a3e16 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 15 Apr 2026 13:28:52 -0400 Subject: [PATCH] wikiheaders: Don't escape `.` chars in manpage's brief section. Otherwise, the `apropos` command gets upset. Fixes #15387. (cherry picked from commit a49a5e87a9fa41a12da32fca98987beef84964fc) --- build-scripts/wikiheaders.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-scripts/wikiheaders.pl b/build-scripts/wikiheaders.pl index 2092912bc9..d2a1fab4cb 100755 --- a/build-scripts/wikiheaders.pl +++ b/build-scripts/wikiheaders.pl @@ -2912,6 +2912,11 @@ __EOF__ $brief = shift @briefsplit; $brief = dewikify($wikitype, $brief); + # Hack: `apropros` doesn't like escaped character things like `\[char46]` for `.`...since almost every + # manpage will end their Brief section with a period and it won't wordwrap to risk being a groff control + # character, just replace it. + $brief =~ s/\\\[char46\]/./g; + if (defined $remarks) { $remarks = dewikify($wikitype, join("\n", @briefsplit) . $remarks); }