summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-10-28 07:33:57 +0000
committerschwarze <schwarze@openbsd.org>2016-10-28 07:33:57 +0000
commit16167c23fa3b98b0fbed68fdb22bf3973fe90ac9 (patch)
treea48336ffd3bcc0d20ecc0a2747473be2e529d07f
parentDocument that rev(1) uses LC_CTYPE. (diff)
downloadwireguard-openbsd-16167c23fa3b98b0fbed68fdb22bf3973fe90ac9.tar.xz
wireguard-openbsd-16167c23fa3b98b0fbed68fdb22bf3973fe90ac9.zip
Document that "nl -d" uses LC_CTYPE.
Triggered by an incorrect patch from Jan Stary. Feedback and OK jmc@, OK millert@.
-rw-r--r--usr.bin/nl/nl.115
1 files changed, 13 insertions, 2 deletions
diff --git a/usr.bin/nl/nl.1 b/usr.bin/nl/nl.1
index 9913bf33e61..1ba66c16715 100644
--- a/usr.bin/nl/nl.1
+++ b/usr.bin/nl/nl.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: nl.1,v 1.8 2014/11/15 14:41:02 bentley Exp $
+.\" $OpenBSD: nl.1,v 1.9 2016/10/28 07:33:57 schwarze Exp $
.\" $NetBSD: nl.1,v 1.14 2013/09/09 09:02:25 wiz Exp $
.\"
.\" Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: November 15 2014 $
+.Dd $Mdocdate: October 28 2016 $
.Dt NL 1
.Os
.Sh NAME
@@ -199,6 +199,17 @@ The default
.Ar width
is 6.
.El
+.Sh ENVIRONMENT
+.Bl -tag -width LC_CTYPE
+.It Ev LC_CTYPE
+The character encoding
+.Xr locale 1 .
+It decides which byte sequences form characters for the
+.Fl d
+option.
+If unset or set to "C", "POSIX", or an unsupported value,
+each byte is treated as a character.
+.El
.Sh EXIT STATUS
.Ex -std
.Sh SEE ALSO