Red Hat Bugzilla – Bug 103499
lang. selection of man based on env. variable is not POSIX-compliant
Last modified: 2007-04-18 12:57:17 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701
Description of problem:
To determine the language of a man page to show, man should refer to
LC_ALL,LC_MESSAGES and LANG in turn. However, currently, it ignores LC_ALL and
LC_MESSAGES but always refers to LANG.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.set LC_ALL=en_US.UTF-8 and LANG to fr_FR.UTF-8
2.try 'man command'
Actual Results: French man page is displayed
Expected Results: English man page is expected.
POSIX /Single Unix Spec is very clear that LANG has the lowest precedence when
determining the locale while LC_ALL has the highest with LC_* (other than ALL)
taking the place between LANG and LC_ALL.
'man' should follow that. I may have reported this to the upstream maintainer(or
may not have).
fixed in 1.5m2-1