Where to set the LANG variable | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Where to set the LANG variable

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 03-15-2005
wvdeijk wvdeijk is offline
Registered User
 
Join Date: Feb 2005
Last Activity: 13 August 2010, 3:31 PM EDT
Location: Ontario
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Where to set the LANG variable

When I login to my AIX server, the LANG variable is automatically being set to En_US. This is causing locale warning messages when I run emacs or perl. The reason seems to be that En_US is not a valid locale (seen by running locale -a).

I can change the variable from the command line (export LANG=EN_US) but want to change it permanently on startup. However, I can't find where to do this. It isn't in /etc/profile, nor in my own .profile or .kshrc. In fact, if I try to put it into my own .profile or .kshrc I can't log in any more.

Can anyone tell me where I should make this change.

Thanks.
Sponsored Links
    #2  
Old 03-16-2005
phil1t phil1t is offline
Registered User
 
Join Date: Mar 2005
Last Activity: 14 April 2005, 1:41 PM EDT
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
I put it in my .profile if it is just for myself, and /etc/profile if it is for all users.
Sponsored Links
    #3  
Old 03-16-2005
locustfurnace locustfurnace is offline Forum Advisor  
Registered User
 
Join Date: Aug 2004
Last Activity: 20 November 2005, 5:03 PM EST
Posts: 232
Thanks: 0
Thanked 0 Times in 0 Posts
I've added to my .profile
export LC_ALL=en_US.UTF-8
    #4  
Old 03-16-2005
Ygor's Avatar
Ygor Ygor is offline Forum Advisor  
Advisor
 
Join Date: Oct 2003
Last Activity: 2 May 2014, 7:14 AM EDT
Location: 54.23, -4.53
Posts: 1,801
Thanks: 1
Thanked 112 Times in 98 Posts
For AIX: man chlang
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
install arabic lang drpix HP-UX 2 10-30-2011 07:15 AM
How to do 'export LANG=en" Using C Ram Das Programming 2 04-11-2008 12:52 PM
LANG=C not English? dotancohen Ubuntu 4 03-11-2008 04:40 AM
Lang nhatch UNIX for Dummies Questions & Answers 0 10-13-2004 11:36 AM
bc arbitrary precision cal lang larry UNIX for Dummies Questions & Answers 2 04-11-2003 05:03 PM



All times are GMT -4. The time now is 10:16 PM.