[BACK]Return to less.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / less

Diff for /src/usr.bin/less/less.1 between version 1.46 and 1.47

version 1.46, 2015/11/06 15:58:01 version 1.47, 2015/11/06 16:20:37
Line 1473 
Line 1473 
 Selects a character set appropriate for Microsoft Windows (cp 1251).  Selects a character set appropriate for Microsoft Windows (cp 1251).
 .El  .El
 .Pp  .Pp
 In rare cases, it may be desired to tailor  If neither LESSCHARSET is not set,
 .Nm  
 to use a character set other than the ones definable by LESSCHARSET.  
 In this case, the environment variable  
 .Ev LESSCHARDEF  
 can be used to define a character set.  
 It should be set to a string where each character in the string represents  
 one character in the character set.  
 The character "." is used for a normal character, "c" for control,  
 and "b" for binary.  
 A decimal number may be used for repetition.  
 For example, "bccc4b." would mean character 0 is binary,  
 1, 2 and 3 are control, 4, 5, 6 and 7 are binary, and 8 is normal.  
 All characters after the last are taken to be the same as the last,  
 so characters 9 through 255 would be normal.  
 (This is an example, and does not necessarily  
 represent any real character set.)  
 .Pp  
 This table shows the value of LESSCHARDEF which is equivalent  
 to each of the possible values for LESSCHARSET:  
 .Bd -literal -offset indent  
 ascii           8bcccbcc18b95.b  
 dos             8bcccbcc12bc5b95.b.  
 ebcdic          5bc6bcc7bcc41b.9b7.9b5.b..8b6.10b6.b9.7b  
                 9.8b8.17b3.3b9.7b9.8b8.6b10.b.b.b.  
 IBM-1047        4cbcbc3b9cbccbccbb4c6bcc5b3cbbc4bc4bccbc  
                 191.b  
 iso8859         8bcccbcc18b95.33b.  
 koi8-r          8bcccbcc18b95.b128.  
 latin1          8bcccbcc18b95.33b.  
 next            8bcccbcc18b95.bb125.bb  
 .Ed  
 .Pp  
 If neither LESSCHARSET nor LESSCHARDEF is set,  
 but any of the strings "UTF-8", "UTF8", "utf-8" or "utf8" is found in the  but any of the strings "UTF-8", "UTF8", "utf-8" or "utf8" is found in the
 .Ev LC_ALL , LC_CTYPE  .Ev LC_ALL , LC_CTYPE
 or  or
Line 1935 
Line 1902 
 (default "0123456789;[?!"'#%()*+\ ").  (default "0123456789;[?!"'#%()*+\ ").
 .It Ev LESSBINFMT  .It Ev LESSBINFMT
 Format for displaying non-printable, non-control characters.  Format for displaying non-printable, non-control characters.
 .It Ev LESSCHARDEF  
 Defines a character set.  
 .It Ev LESSCHARSET  .It Ev LESSCHARSET
 Selects a predefined character set.  Selects a predefined character set.
 .It Ev LESSCLOSE  .It Ev LESSCLOSE

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47