LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2007, 04:22 AM   #1
tommosa
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
setting locale


If I go into command prompt and enter 'locale', LC_ALL is
Code:
LC_ALL=
.
Then if I enter :
Code:
export LC_ALL="en_ZA"
and enter 'locale' again, LC_ALL is
Code:
LC_ALL=en_ZA
.
But if log out and log in again and enter 'locale', then LC_ALL is back to
Code:
LC_ALL=
again.
Why isnt it keeping this setting ?
Thanks
 
Old 11-06-2007, 04:56 AM   #2
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
LC_ALL is an environmental variable. What you are doing is just setting it for the current instance of the shell you type it in and for all the descendants of that shell. What you need to do for it to be persistent is to get it set at login.

Most distros already have a mechanism for setting the locale variables. For example, in Ubuntu, I think you can do what you want by adding the line

Code:
LC_ALL="en_ZA"
to /etc/default/locale
 
Old 11-06-2007, 05:22 AM   #3
tommosa
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
I'm using Mandriva so I added that line to /etc/sysconfig/i18n and that did the trick, thanks for the help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change the locale by setting the system default locale letdoit Slackware 6 08-18-2011 03:34 AM
Setting locale failed godzern Linux - Software 2 10-30-2006 01:32 PM
locale setting ’ mnaumanca Linux - Software 0 02-18-2005 03:39 PM
Changing locale setting. kponenation Slackware 3 02-17-2005 04:17 PM
[sid] setting locale guldo Debian 3 02-03-2004 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration