LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   Permanently Set Environment Variable LANG (https://www.linuxquestions.org/questions/red-hat-31/permanently-set-environment-variable-lang-648917/)

Mistro116@yahoo.com 06-12-2008 05:37 PM

Permanently Set Environment Variable LANG
 
I'm trying to permanently set the environment variable LANG to en_US.iso88591 for all users.

I've added:

declare -x LANG="en_US.iso88591" to my /etc/profile and /etc/bashrc, but it will not work.

When I type env, I get:

[root@MISTRO aaronp1]# env
SSH_AGENT_PID=13499
HOSTNAME=MISTRO
TERM=xterm
SHELL=/bin/bash
DESKTOP_STARTUP_ID=
HISTSIZE=1000
GTK_RC_FILES=/etc/gtk/gtkrc:/home/aaronp1/.gtkrc-1.2-gnome2
WINDOWID=27263049
QTDIR=/usr/lib/qt-3.1
USER=aaronp1
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SSH_AUTH_SOCK=/tmp/ssh-sDZ13448/agent.13448
SESSION_MANAGER=local/MISTRO:/tmp/.ICE-unix/13448
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/aaronp1/bin
MAIL=/var/spool/mail/aaronp1
PWD=/home/aaronp1
INPUTRC=/etc/inputrc
XMODIFIERS=@im=none
LANG=en_US.UTF-8
GDM_LANG=en_US.UTF-8
GDMSESSION=GNOME
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/root
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=aaronp1
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
XAUTHORITY=/root/.xauth2EcpR0
COLORTERM=gnome-terminal
_=/usr/bin/env

Is there a way to do this that I'm missing?

I've also tried using export, set commands and just LANG="en...."

Thanks,
Mistro116

unSpawn 06-12-2008 08:11 PM

See /etc/profile.d/lang.sh?


All times are GMT -5. The time now is 02:28 PM.