[PATCH 18/42] doc: access en dash character portably
"G. Branden Robinson" <[email protected]> Tue, 18 Nov 2025 21:46:46 -0600
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <20251119034646.fxuh4hzvgr4xxnrq@illithid> |
The `\(en` special character escape sequence is not universally
portable. Indirect it through a string definition.
---
find/find.1 | 6 ++++--
locate/locate.1 | 4 +++-
locate/locatedb.5 | 10 ++++++++--
locate/updatedb.1 | 8 +++++++-
xargs/xargs.1 | 10 ++++++++--
5 files changed, 30 insertions(+), 8 deletions(-)
diff --git a/find/find.1 b/find/find.1
index e9fb7cd6..cf30a34d 100644
--- a/find/find.1
+++ b/find/find.1
@@ -3,11 +3,13 @@
.ie \n(.g \{\
. ds " \(dq
. ds ' \(aq
+. ds en \(en
.\}
.el \{\
. \" \*" is not usable in macro arguments on AT&T troff.
. ds " ""\" two adjacent quotes and no space before this comment
. ds ' '
+. ds en \-
.\}
.SH NAME
find \- search for files in a directory hierarchy
@@ -2686,7 +2688,7 @@ .SH HISTORY
Programmer's Workbench project and was written by Dick Haight. Doug
McIlroy's
.I A Research UNIX Reader: Annotated Excerpts from the Programmer's \
-Manual, 1971\(en1986
+Manual, 1971\*(en1986
provides some additional details; you can read it on-line at
<https://www.cs.dartmouth.edu/~doug/reader.pdf>.
.P
@@ -2857,7 +2859,7 @@ .SH "REPORTING BUGS"
.RE
.
.SH COPYRIGHT
-Copyright \(co 1990\(en2025 Free Software Foundation, Inc.
+Copyright \(co 1990\*(en2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
diff --git a/locate/locate.1 b/locate/locate.1
index 9efc9e36..eb177d1e 100644
--- a/locate/locate.1
+++ b/locate/locate.1
@@ -2,9 +2,11 @@
.\" As a GNU troff extension, \% at the beginning of a word suppresses
.\" its hyphenation.
.ie \n(.g \{\
+. ds en \(en
. ds % \%
.\}
.el \{\
+. ds en \-
. ds % \" empty
.\}
.SH NAME
@@ -349,7 +351,7 @@ .SH "REPORTING BUGS"
.RE
.
.SH COPYRIGHT
-Copyright \(co 1994\(en2025 Free Software Foundation, Inc.
+Copyright \(co 1994\*(en2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
diff --git a/locate/locatedb.5 b/locate/locatedb.5
index 2b952ffa..9cde7989 100644
--- a/locate/locatedb.5
+++ b/locate/locatedb.5
@@ -1,4 +1,10 @@
.TH LOCATEDB 5 2020-12-27 findutils \" -*- nroff -*-
+.ie \n(.g \{\
+. ds en \(en
+.\}
+.el \{\
+. ds en \-
+.\}
.SH NAME
locatedb \- front-compressed file name database
.
@@ -107,7 +113,7 @@ .SH Old Locate Database format
bigrams in the file list. A bigram is a pair of adjacent bytes.
Bytes in the database that have the high bit set are indexes (with the
high bit cleared) into the bigram table. The bigram and
-offset-differential count coding makes these databases 20\(en25% smaller
+offset-differential count coding makes these databases 20\*(en25% smaller
than the new format, but makes them not 8-bit clean. Any byte in a
file name that is in the ranges used for the special codes is replaced
in the database by a question mark, which not coincidentally is the
@@ -159,7 +165,7 @@ .SH "REPORTING BUGS"
.RE
.
.SH COPYRIGHT
-Copyright \(co 1994\(en2025 Free Software Foundation, Inc.
+Copyright \(co 1994\*(en2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
diff --git a/locate/updatedb.1 b/locate/updatedb.1
index 04314f6a..d7b2fa68 100644
--- a/locate/updatedb.1
+++ b/locate/updatedb.1
@@ -1,4 +1,10 @@
.TH UPDATEDB 1 2023-11-10 findutils \" -*- nroff -*-
+.ie \n(.g \{\
+. ds en \(en
+.\}
+.el \{\
+. ds en \-
+.\}
.SH NAME
updatedb \- update a file name database
.SH SYNOPSIS
@@ -140,7 +146,7 @@ .SH "REPORTING BUGS"
.RE
.
.SH COPYRIGHT
-Copyright \(co 1994\(en2025 Free Software Foundation, Inc.
+Copyright \(co 1994\*(en2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
diff --git a/xargs/xargs.1 b/xargs/xargs.1
index d2ce74de..b5f5fb04 100644
--- a/xargs/xargs.1
+++ b/xargs/xargs.1
@@ -1,4 +1,10 @@
.TH XARGS 1 2024-06-03 findutils \" -*- nroff -*-
+.ie \n(.g \{\
+. ds en \(en
+.\}
+.el \{\
+. ds en \-
+.\}
.SH NAME
xargs \- build and execute command lines from standard input
.SH SYNOPSIS
@@ -430,7 +436,7 @@ .SH "EXIT STATUS"
.IP 0
if it succeeds
.IP 123
-if any invocation of the command exited with status 1\(en125
+if any invocation of the command exited with status 1\*(en125
.IP 124
if the command exited with status 255
.IP 125
@@ -585,7 +591,7 @@ .SH "REPORTING BUGS"
.RE
.
.SH COPYRIGHT
-Copyright \(co 1990\(en2025 Free Software Foundation, Inc.
+Copyright \(co 1990\*(en2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
--
2.30.2
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmkdPaYACgkQ0Z6cfXEm bc4e7w/+JEZY7A4qZQ+vdvFxltF+9G1VWRmYs4prTDab9jF9EreO2Ajnelz9opos VZKDlAa98cq6301SCFT/PCqhcpyj1Ok7zdZen6ch1MPZGMjF9nceadI847ATAIJv SMRpUZRFeYzAUJArYVCr7hxw6Ta0RKoq/Cac6snlBGT0DKSArWJ6gkzphZXVRyR1 W7NA54DcCav8+nxs1D7jZsNuBfxPqzCKGh5tZdpT9La4c4CBmjQ4CnSiesvu97L9 t/6757pgEMtudg2MUyHjdr+xGnE4pc6wCTE32qP7G7e9cUIxCmUfTC7nBJsWQ46v o7cIboMllCRURBABlaNJn2u0RIjLRl04rfu8uAmj38niw2D1ovUWFcR8vFfnHRSx REKRCMYc6HQSVNr60z3zU1t6DiLsCyxYpUjQZdcEqdfnqE2E5v1+BmF8CcYtvEaU nuK5XbAXW1AGpNDWr8VMeRwyUbkZtOEwFLiXwq9aGbAbwDjDA1ZGKJ3G8h0uBYCK 7TvqeOkzOL+s3456fzkRY40p4wnXljnzU9VnmKixD8mMuQYUB42D0Gimd1Lan2yr KA4H/1pEAEKin50O9+j9/ux3n7vEUA2dGMDYkNHxawmHymetRD2vlzyJxA5rKfmF zoeM32peEoWyCn/Kbq8Hfa5erH1s+M11DQSAzI+4uO6IOHtxXKQ= =ic+S -----END PGP SIGNATURE-----