LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-06-2009, 06:57 AM   #1
sankar_mundla
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Setting the locale


Hi,
I am setting the locale using the following commands.
export LANG=ja_JP.UTF-8
export LC_ALL=ja_JP.UTF-8

After executing the above command, i issue file command on /usr/lib/test. like "file /usr/lib/test",the expect this command is to find the 32 bit or 64 bit. after setting the locale also i am getting this output in english.I want in japanees how can i do that?.

Any clues>.

Regards,
Sankar
 
Old 04-06-2009, 01:34 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
Setting LC_MESSAGES or LANG should be enough, so there is no need to set LC_ALL. The fact is, that it only affects the language in diagnostic messages and some commands like man.
Using your locale settings (ja_JP.UTF-8), try:
Code:
ls --help
man notexistent
man man
 
Old 04-07-2009, 12:27 AM   #3
sankar_mundla
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Hi, i am working on solaris and AIX, when i set LANG=ja_JP.UTF-8,by default the LC_MESSAGES and LC_CTYPE values set to ja_JP.UTF-8. This is not happend. is anything dependent on AIX, solaris and Linux...
 
Old 04-07-2009, 02:26 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
I don't know about AIX, but setting the locale in Solaris works much like linux.
And what do you mean by "when i set LANG=ja_JP.UTF-8,by default the LC_MESSAGES and LC_CTYPE values set to ja_JP.UTF-8. This is not happend"
Running
Code:
locale -a
should show you the available locales for your system and you should select the one that matches your needs. Mind that some of these locales are maybe partially installed, so you will not have the functionality you want.
More details about solaris locales you find here. There is also a utility named localeadm that can be used to manage locales.
 
  


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 On
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 tommosa Linux - Newbie 2 11-06-2007 05:22 AM
Language/locale setting val54321 Linux - Newbie 3 05-18-2005 07:26 AM
locale setting ’ mnaumanca Linux - Software 0 02-18-2005 03:39 PM
Changing locale setting. kponenation Slackware 3 02-17-2005 04:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:22 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