doc: access en dash character portably

The `\(en` special character escape sequence is not universally
portable.  Indirect it through a string definition.

* find/find.1:
* locate/locate.1:
* locate/locatedb.5:
* locate/updatedb.1:
* xargs/xargs.1: Do the above.

Discussed at:
https://lists.gnu.org/r/bug-findutils/2025-11/msg00094.html

Copyright-paperwork-exempt: Yes
This commit is contained in:
G. Branden Robinson 2025-11-18 21:46:46 -06:00 committed by Bernhard Voelker
parent 7cb135d5fb
commit 2923a0d78f
5 changed files with 30 additions and 8 deletions

View File

@ -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
@ -2684,7 +2686,7 @@ program appeared in Version 5 Unix as part of the
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
@ -2855,7 +2857,7 @@ mailing list:
.RE
.
.SH COPYRIGHT
Copyright \(co 1990\(en2026 Free Software Foundation, Inc.
Copyright \(co 1990\*(en2026 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.

View File

@ -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 @@ mailing list:
.RE
.
.SH COPYRIGHT
Copyright \(co 1994\(en2026 Free Software Foundation, Inc.
Copyright \(co 1994\*(en2026 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.

View File

@ -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 @@ format starts with a 256 byte table containing the 128 most common
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 @@ mailing list:
.RE
.
.SH COPYRIGHT
Copyright \(co 1994\(en2026 Free Software Foundation, Inc.
Copyright \(co 1994\*(en2026 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.

View File

@ -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 @@ mailing list:
.RE
.
.SH COPYRIGHT
Copyright \(co 1994\(en2026 Free Software Foundation, Inc.
Copyright \(co 1994\*(en2026 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.

View File

@ -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 @@ exits with the following 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 @@ mailing list:
.RE
.
.SH COPYRIGHT
Copyright \(co 1990\(en2026 Free Software Foundation, Inc.
Copyright \(co 1990\*(en2026 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.