summaryrefslogtreecommitdiffstats
path: root/usr.bin/rev/rev.1
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-10-28 07:28:27 +0000
committerschwarze <schwarze@openbsd.org>2016-10-28 07:28:27 +0000
commit9ab6f78c30ddeec41af2d6d73a32eaaee522f587 (patch)
treeeca86960c531c7dc71a31ce00e3ce6107c8ef42a /usr.bin/rev/rev.1
parentDelete some useless setlocale(3) calls in /usr/bin, no functional change. (diff)
downloadwireguard-openbsd-9ab6f78c30ddeec41af2d6d73a32eaaee522f587.tar.xz
wireguard-openbsd-9ab6f78c30ddeec41af2d6d73a32eaaee522f587.zip
Document that rev(1) uses LC_CTYPE.
Triggered by an incorrect patch from Jan Stary. While here, add an .Xr to cut(1). OK millert@ jmc@
Diffstat (limited to 'usr.bin/rev/rev.1')
-rw-r--r--usr.bin/rev/rev.116
1 files changed, 13 insertions, 3 deletions
diff --git a/usr.bin/rev/rev.1 b/usr.bin/rev/rev.1
index 132b2122396..408bbeed62b 100644
--- a/usr.bin/rev/rev.1
+++ b/usr.bin/rev/rev.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rev.1,v 1.7 2009/08/16 09:41:08 sobrado Exp $
+.\" $OpenBSD: rev.1,v 1.8 2016/10/28 07:28:27 schwarze Exp $
.\" $NetBSD: rev.1,v 1.3 1995/09/28 08:49:39 tls Exp $
.\"
.\" Copyright (c) 1985, 1992, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)rev.1 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: August 16 2009 $
+.Dd $Mdocdate: October 28 2016 $
.Dt REV 1
.Os
.Sh NAME
@@ -45,5 +45,15 @@ The
utility copies the specified files to the standard output, reversing the
order of characters in every line.
If no files are specified, the standard input is read.
+.Sh ENVIRONMENT
+.Bl -tag -width LC_CTYPE
+.It Ev LC_CTYPE
+The character encoding
+.Xr locale 1 .
+It decides which byte sequences form characters.
+If unset or set to "C", "POSIX", or an unsupported value,
+the order of individual bytes is reversed.
+.El
.Sh SEE ALSO
-.Xr cat 1
+.Xr cat 1 ,
+.Xr cut 1