Bug 12963 - message.texi contains incorrect information about LANGUAGE
Summary: message.texi contains incorrect information about LANGUAGE
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: manual (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
Depends on:
Reported: 2011-07-06 01:50 UTC by Vincent Lefèvre
Modified: 2014-06-27 12:57 UTC (History)
0 users

See Also:
Last reconfirmed:
fweimer: security-


Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lefèvre 2011-07-06 01:50:52 UTC
message.texi contains:

The @var{locale} component is computed based on the category used.  Just
like for the @code{setlocale} function here comes the user selection
into the play.  Some environment variables are examined in a fixed order
and the first environment variable set determines the return value of
the lookup process.  In detail, for the category @code{LC_xxx} the
following variables in this order are examined:

@table @code
@item LC_ALL
@item LC_xxx
@item LANG
@end table

But this is incorrect: LANGUAGE does not always have the precedence over the other variables, as shown below:

ypig% LANGUAGE=fr_FR LC_ALL=en_US cp
cp: opérande fichier manquant
Saisissez « cp --help » pour plus d'informations.
ypig% LANGUAGE=fr_FR LC_ALL=C cp    
cp: missing file operand
Try `cp --help' for more information.