Index: less.1
===================================================================
RCS file: /cvs/src/usr.bin/less/less.1,v
retrieving revision 1.50
diff -u -p -r1.50 less.1
--- less.1      15 Nov 2015 21:05:56 -0000      1.50
+++ less.1      23 Nov 2015 06:15:22 -0000
@@ -1424,67 +1424,9 @@ in text files.
 .Pp
 A "character set" is simply a description of which characters are to
 be considered normal, control, and binary.
-The
-.Ev LESSCHARSET
-environment variable may be used to select a character set.
-Possible values for
-.Ev LESSCHARSET
-are:
-.Bl -tag -width "IBM-1047"
-.It ascii
-BS, TAB, NL, CR, and formfeed are control characters,
-all chars with values between 32 and 126 are normal,
-and all others are binary.
-.It iso8859
-Selects an ISO 8859 character set.
-This is the same as ASCII, except characters between 160 and 255 are
-treated as normal characters.
-.It latin1
-Same as iso8859.
-.It latin9
-Same as iso8859.
-.It dos
-Selects a character set appropriate for MS-DOS.
-.It ebcdic
-Selects an EBCDIC character set.
-.It IBM-1047
-Selects an EBCDIC character set used by OS/390
-.Ux
-Services.
-This is the EBCDIC analogue of latin1.
-You get similar results by setting either LESSCHARSET=IBM-1047 or
-LC_CTYPE=en_US in your environment.
-.It koi8-r
-Selects a Russian character set.
-.It next
-Selects a character set appropriate for NeXT computers.
-.It utf-8
-Selects the UTF-8 encoding of the ISO 10646 character set.
-UTF-8 is special in that it supports multi-byte characters in the input file.
-It is the only character set that supports multi-byte characters.
-.It windows
-Selects a character set appropriate for Microsoft Windows (cp 1251).
-.El
-.Pp
-If neither LESSCHARSET is not set,
-but any of the strings "UTF-8", "UTF8", "utf-8" or "utf8" is found in the
-.Ev LC_ALL , LC_CTYPE
-or
-.Ev LANG
-environment variables, then the default character set is utf-8.
-.Pp
-If that string is not found, but your system supports the
-setlocale interface,
 .Nm
-will use setlocale to determine the character set.
-setlocale is controlled by setting the
-.Ev LANG
-or
-.Ev LC_CTYPE
-environment variables.
-.Pp
-Finally, if the
-setlocale interface is also not available, the default character set is latin1.
+will determine the character set to use from the environment (see
+.Xr locale 1 ) .
 .Pp
 Control and binary characters are displayed in standout (reverse video).
 Each such character is displayed in caret notation if possible
@@ -1893,8 +1835,6 @@ end character in an ANSI color escape se
 (default "0123456789;[?!"'#%()*+\ ").
 .It Ev LESSBINFMT
 Format for displaying non-printable, non-control characters.
-.It Ev LESSCHARSET
-Selects a predefined character set.
 .It Ev LESSCLOSE
 Command line to invoke the (optional) input-postprocessor.
 .It Ev LESSEDIT
Index: lesskey.1
===================================================================
RCS file: /cvs/src/usr.bin/less/lesskey.1,v
retrieving revision 1.13
diff -u -p -r1.13 lesskey.1
--- lesskey.1   5 Nov 2015 22:08:44 -0000       1.13
+++ lesskey.1   23 Nov 2015 06:15:22 -0000
@@ -410,13 +410,10 @@ Although the lesskey file can be used to
 environment, the main purpose of assigning variables in the lesskey file
 is simply to have all less configuration information stored in one file.
 .Pp
-The following input file sets the -i option whenever less is run,
-and specifies the character set to be
-.Qq latin1 :
+The following input file sets the -i option whenever less is run:
 .Bd -literal -offset indent
 #env
 LESS = -i
-LESSCHARSET = latin1
 .Ed
 .Sh ENVIRONMENT
 .Bl -tag -width LESSKEY_SYSTEM -compact

Reply via email to