aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/man')
-rw-r--r--gnu/usr.bin/man/catman/catman.perl10
-rw-r--r--gnu/usr.bin/man/makewhatis/makewhatis.perl10
-rw-r--r--gnu/usr.bin/man/man/man.man4
3 files changed, 6 insertions, 18 deletions
diff --git a/gnu/usr.bin/man/catman/catman.perl b/gnu/usr.bin/man/catman/catman.perl
index 3eeafed523f8..26ef427371fe 100644
--- a/gnu/usr.bin/man/catman/catman.perl
+++ b/gnu/usr.bin/man/catman/catman.perl
@@ -46,14 +46,8 @@ sub variables {
$remove = 0; # unlink forgotten man/catpages
$locale = 0; # go through localized man directories only
- # choose localized man directories suffix. If $LC_CTYPE is set, then
- # its value should be used as suffix, otherwise $LANG (if set)
- $local_suffix = "";
- if ($ENV{'LC_CTYPE'}) {
- $local_suffix = $ENV{'LC_CTYPE'}
- } elsif ($ENV{'LANG'}) {
- $local_suffix = $ENV{'LANG'}
- }
+ # choose localized man directories suffix.
+ $local_suffix = $ENV{'LC_ALL'} || $ENV{'LC_CTYPE'} || $ENV{'LANG'};
# if no argument for directories given
@defaultmanpath = ( '/usr/share/man' );
diff --git a/gnu/usr.bin/man/makewhatis/makewhatis.perl b/gnu/usr.bin/man/makewhatis/makewhatis.perl
index 2080aa5b0a64..4a4ab4465464 100644
--- a/gnu/usr.bin/man/makewhatis/makewhatis.perl
+++ b/gnu/usr.bin/man/makewhatis/makewhatis.perl
@@ -433,14 +433,8 @@ sub variables {
$append = 0; # Don't delete old entries
$locale = 0; # Build DB only for localized man directories
- # choose localized man direcotries suffixs. If $LC_CTYPE is set, then
- # its value will be used as suffix, otherwise $LANG value (if set)
- $local_suffix = "";
- if ($ENV{'LC_CTYPE'}) {
- $local_suffix = $ENV{'LC_CTYPE'};
- } elsif ($ENV{'LANG'}) {
- $local_suffix = $ENV{'LANG'}
- }
+ # choose localized man directories suffix.
+ $local_suffix = $ENV{'LC_ALL'} || $ENV{'LC_CTYPE'} || $ENV{'LANG'};
# if no argument for directories given
@defaultmanpath = ( '/usr/share/man' );
diff --git a/gnu/usr.bin/man/man/man.man b/gnu/usr.bin/man/man/man.man
index 296db4d504a8..bd2e4ce9d1ba 100644
--- a/gnu/usr.bin/man/man/man.man
+++ b/gnu/usr.bin/man/man/man.man
@@ -112,7 +112,7 @@ component.
.Pp
Locale name is taken from the first of three environment variables
with a nonempty value:
-.Ev LC_CTYPE , LC_ALL ,
+.Ev LC_ALL , LC_CTYPE ,
or
.Ev LANG ,
in the specified order.
@@ -179,7 +179,7 @@ the files that would be formatted or displayed.
.El
.Sh ENVIRONMENT
.Bl -tag -width MANROFFSEQ
-.It Ev LC_CTYPE , LC_ALL , LANG
+.It Ev LC_ALL , LC_CTYPE , LANG
These variables specify the preferred language for manual pages.
(See the
.Fl o