On Fri, Jan 05, 2001 at 11:10:52AM -0500, Timothy Reaves <[EMAIL PROTECTED]>
wrote:
| fine as root, but when I run it as 'me', it just doesn't do anything.
| Using strace shows that it is trying to open
| /usr/share/locale/en/LC_MESSAGES/libc.mo
| or
| /usr/share/locale/en_US/LC_MESSAGES/libc.mo or
|
| I have neither /usr/share/locale/en or /usr/share/locale/en_US on my
| system. When I strace as root, it does not appear to try to open these
| files.
Default locales are chosen based on an environment variable.
Try saying:
env | sort
as both you and root and comparing them (with "diff -u" for example).
You may find a locale related variable set in the non-root environment.
A quick dig around the Linux (RH7) man set shows no useful
documentation. Well, that's the GNU for you. Over to my trusty
Solaris box, which says under "man gettext":
ENVIRONMENT
LANG Specifies locale name.
LC_MESSAGES
Specifies messaging locale, and if present overrides
LANG for messages.
TEXTDOMAIN
Specifies the text domain name, which is identical to
the message object filename without .mo suffix.
TEXTDOMAINDIR
Specifies the pathname to the message database, and if
present replaces /usr/lib/locale.
That /usr/lib/locale on Solaris is /usr/share/locale on RedHat (and probably
other Linux distros).
My env on the RH7 box says:
LANG=en_US
Have a look in your /usr/share/locale dir and pick something (or add in the
locale database for your preferred local from the RPMs).
And check out
/etc/profile.d/lang.sh
It gets config info from
/etc/sysconfig/i18n
and then
$HOME/.i18n
Enjoy,
--
Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
Out on the road, feeling the breeze, passing the cars. - Bob Seger
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list