Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

locale in HP-UX

Status
Not open for further replies.

unixwhoopie

Programmer
May 6, 2003
45
US
Hello,

when I do locale in HP-UX, I see the following:

# locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=

Does this mean no locale set? Is there a default set to English?

Also, how can i set this to japanese in SJIS?

THANKS
Srikanth
 
C is the default locale. You can override it by setting the LC_ALL variable to the new locale (not sure what the correct one is for Japanese, and even then I think you have multiple choices depending on how you want it to behave). You can also set the other LC_ variables individually if you only want to have it behave in a Japanese way for certain things, e.g. LC_TIME for times and dates.

Annihilannic.
 
The locale is set to Japanese as follows:

export LANG=ja_JP.SJIS
export LC_ALL= ja_JP.SJIS

Now, when I do locale, it displays that lang is set to ja_JP.SJIS.

However, I am still not able to print or view Japanese char in UNIX. Should I use Reflection for this?

Thanks
 
I guess you will have to check whether Reflection supports those character sets, and make sure you have a font selected that supports Japanese characters... not something I've ever tried!

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top