diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-02 16:52:14 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-03-02 16:52:14 +0000 |
| commit | afcf05e46aacbe58f9fd8338ab6ecf9b7d06d004 (patch) | |
| tree | 4d1655d724be575f060459c555ab30a5630ec3e9 /gnu | |
| parent | 7a6be913664526370f69f43e340b7ed33f20ea8f (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/man/catman/catman.perl | 10 | ||||
| -rw-r--r-- | gnu/usr.bin/man/makewhatis/makewhatis.perl | 10 | ||||
| -rw-r--r-- | gnu/usr.bin/man/man/man.man | 4 | ||||
| -rw-r--r-- | gnu/usr.bin/rcs/rcsfreeze/rcsfreeze.sh | 2 |
4 files changed, 7 insertions, 19 deletions
diff --git a/gnu/usr.bin/man/catman/catman.perl b/gnu/usr.bin/man/catman/catman.perl index 3eeafed523f8d..26ef427371fe6 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 2080aa5b0a64c..4a4ab44654643 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 296db4d504a8e..bd2e4ce9d1ba0 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 diff --git a/gnu/usr.bin/rcs/rcsfreeze/rcsfreeze.sh b/gnu/usr.bin/rcs/rcsfreeze/rcsfreeze.sh index 9cb34bbdb83ad..be79406fe0c14 100644 --- a/gnu/usr.bin/rcs/rcsfreeze/rcsfreeze.sh +++ b/gnu/usr.bin/rcs/rcsfreeze/rcsfreeze.sh @@ -28,7 +28,7 @@ PATH=/bin:/usr/bin:$PATH export PATH -DATE=`LC_TIME=C date` || exit +DATE=`LC_ALL=C date` || exit # Check whether we have an RCS subdirectory, so we can have the right # prefix for our paths. if test -d RCS |
