LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Setting the locale (https://www.linuxquestions.org/questions/linux-general-1/setting-the-locale-717151/)

sankar_mundla 04-06-2009 06:57 AM

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

bathory 04-06-2009 01:34 PM

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


sankar_mundla 04-07-2009 12:27 AM

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...

bathory 04-07-2009 02:26 AM

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.


All times are GMT -5. The time now is 06:38 AM.