setlocale.3, locale.7: Clean up the description of LANGUAGE environment variable

Clean up the $LANGUAGE description, by removing bogus comments
from setlocale(3) and expanding the mention in locale(7).

Maybe you will decide that a more detailed description should be left
to the gettext(3) documentation, but I actually care about the invisible
part of the patch more since the comments have put me off the track
initially ($LANGUAGE has nothing to do with setlocale(3) and is
completely isolated to gettext, as obvious from the glibc sources).

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2008-12-05 18:38:30 -05:00
parent f439817725
commit 97aec57c6f
2 changed files with 7 additions and 12 deletions

View File

@ -27,7 +27,7 @@
.\" Modified Tue Aug 24 17:11:01 1999 by Andries Brouwer (aeb@cwi.nl)
.\" Modified Tue Feb 6 03:31:55 2001 by Andries Brouwer (aeb@cwi.nl)
.\"
.TH SETLOCALE 3 1999-07-04 "GNU" "Linux Programmer's Manual"
.TH SETLOCALE 3 2008-12-05 "GNU" "Linux Programmer's Manual"
.SH NAME
setlocale \- set the current locale
.SH SYNOPSIS
@ -88,13 +88,7 @@ is
each part of the locale that should be modified is set according to the
environment variables.
The details are implementation-dependent.
For glibc, first
.\" [This is false on my system - must check which library versions do this]
.\" if
.\" .I category
.\" is LC_MESSAGES, the environment variable LANGUAGE is inspected,
.\" then
(regardless of
For glibc, first (regardless of
.IR category ),
the environment variable
.B LC_ALL
@ -113,8 +107,6 @@ If its value is not a valid locale specification, the locale
is unchanged, and
.BR setlocale ()
returns NULL.
.\" The environment variable LANGUAGE may contain several, colon-separated,
.\" locale names.
.PP
The locale
.B """C"""

View File

@ -25,7 +25,7 @@
.\" <jochen.hein@delphi.central.de>
.\" Modified Thu Apr 25 00:43:19 2002 by Bruno Haible <bruno@clisp.org>
.\"
.TH LOCALE 7 1993-04-24 "Linux" "Linux Programmer's Manual"
.TH LOCALE 7 2008-12-05 "Linux" "Linux Programmer's Manual"
.SH NAME
locale \- Description of multi-language support
.SH SYNOPSIS
@ -98,7 +98,10 @@ and
functions to ease the use of these information.
The GNU gettext family of
functions also obey the environment variable
.BR LANGUAGE .
.BR LANGUAGE
(containing a colon-separated list of locales)
if the category is set to a valid locale other than
.BR """C""" .
.TP
.B LC_NUMERIC
changes the information used by the