LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-13-2005, 01:36 AM   #1
r_213
Member
 
Registered: Sep 2004
Posts: 36

Rep: Reputation: 15
LANG settings


Can anybody tell me how to set LANG variable globally?
 
Old 01-13-2005, 02:00 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,884

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Edit /etc/profile and add a line:
export LANG=...
 
Old 01-13-2005, 02:50 AM   #3
r_213
Member
 
Registered: Sep 2004
Posts: 36

Original Poster
Rep: Reputation: 15
Hey thanks for the response.

Can you tell me what this file means then /etc/sysconfig/i18n

What is the difference between the two.
 
Old 01-13-2005, 03:08 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,884

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
I don't know what is the usage of /etc/sysconfig/i18n, because I guess it's distro specific and my distro (Slackware) does not have it. All I know is that i18n is the Internationalization Project. There is also a directory named i18n where the various locales and font settings for each locale are defined.
Also in /etc/profile you define a variable you want to set globally.

Regards
 
Old 01-13-2005, 03:26 AM   #5
r_213
Member
 
Registered: Sep 2004
Posts: 36

Original Poster
Rep: Reputation: 15
I changed the LANG setting in /etc/sysconfig/i18n and rebooted by Linux box. This time I got the LANG settings as intended . I changed it from English to japanese( en_US.UTF-8 to ja_JP.sjis) .But when i run a shell script it gives the output in English. When I run some other command in the shell it comes in japanese.
Any idea why it occurs?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
switch lang rohr Debian 7 07-04-2005 08:51 AM
What a good lang. Dark_Sniper* Programming 19 05-21-2005 05:38 AM
java.lang.NoSuchMethodException: rulirahm Linux - Networking 2 05-02-2005 01:30 AM
most useful prog lang huffboy Programming 8 10-05-2003 12:40 AM
What lang for What titanium_geek Programming 6 03-28-2003 04:53 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration