OpenSolaris

Printable Version Enter a New Search
Bug ID 6304206
Synopsis runtime linker may respect LANG and LC_MESSAGES more than LC_ALL
State 10-Fix Delivered (Fix available in build)
Category:Subcategory compiler:linker
Keywords onnv_triage | opensolaris | oss-request
Sponsor Seizo Sakurai
Submitter jk
Responsible Engineer Seizo Sakurai
Reported Against snv_19
Duplicate Of
Introduced In solaris_8
Commit to Fix snv_31
Fixed In snv_31
Release Fixed solaris_nevada(snv_31) , solaris_10u4(s10u4_04) (Bug ID:2141880)
Related Bugs 6335567
Submit Date 30-July-2005
Last Update Date 29-January-2007
Description
The runtime linker may respect the setting of LANG and LC_MESSAGES
more than the one of LC_ALL environ.  For example:

% unsetenv LANG LC_ALL LC_MESSAGES
% env LANG=ja LC_ALL=C ldd -s /bin/ls

Then, the output will be in Japanese, that is the ja locale
has been used.

Funny thing is if specifying LC_ALL=C before LANG=ja in the command line:

% env LC_ALL=C LANG=ja ldd -s /bin/ls

Then, the output will be correctly in English, that is the C locale
has been used.

Regardless of the order of the specification and the existence of LANG
and LC_MESSAGES, the setting of LC_ALL should always be taken.

This problem affects the behavior of the bfu utility because it depends
on the output of ldd -s.
Work Around
N/A
Comments
N/A