aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/man/makewhatis
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/man/makewhatis')
-rw-r--r--gnu/usr.bin/man/makewhatis/makewhatis.perl10
1 files changed, 2 insertions, 8 deletions
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' );