Operating System - HP-UX
1753615 Members
6021 Online
108797 Solutions
New Discussion юеВ

Re: Question about Chinese language support and HP-UX

 
JDR45
Frequent Advisor

Question about Chinese language support and HP-UX

Hello.  This is my first post here, and my first ever attempt at trying to deal with languages other than English on a server.

 

I have an 11.23 ia64 box that needs to allow certain users to see Chinese characters.

 

I did

swlist -l product Asian-Core

and got

Asian-Core B.11.23 Asian Core

 

But when I did

swlist -l bundle 'CDE-*'

it only returned

CDE-English B.11.23.0409

 

I did

swlist | more

and that didn't return anything related to Asian or Chinese.

 

I looked at SAM / view installed software and didn't see anything helpful.

 

So maybe it's just as simple as installing some sort of Chinese language pack?  But like I said, this language stuff is all new to me, so any advice would be apppreciated.

 

Thanks.

 

9 REPLIES 9
Dennis Handly
Acclaimed Contributor

Re: Question about Chinese language support and HP-UX

What does "locale -a" show for installed locales?

JDR45
Frequent Advisor

Re: Question about Chinese language support and HP-UX

locale -a shows about 200 different files.  I could make out Roman, Arabic, Hebrew, Turkish, and Greek.  But most of the files end in .utf8 or .iso12345

Dennis Handly
Acclaimed Contributor

Re: Question about Chinese language support and HP-UX

Do you see any that start with zh for Chinese?

http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

JDR45
Frequent Advisor

Re: Question about Chinese language support and HP-UX

Yes, locale -a showed

 

zh_HK.hkbig5

zh_HK.utf8

zh_TW.big5

zh_TWccdc

zh_TW.eucTW

zh_TW.utf8

zh_CN.gb18030

zh_CN.hp15CN

zh_CN.utf8

 

So maybe the necessary software is already on the server?

Dennis Handly
Acclaimed Contributor

Re: Question about Chinese language support and HP-UX

>So maybe the necessary software is already on the server?

 

Well the locales are there but you may be missing localized versions of CDE, etc.

JDR45
Frequent Advisor

Re: Question about Chinese language support and HP-UX

So the fix could be as simple as getting the OS install disk, and installing CDE-ChineseS and CDE-ChineseT?

Dennis Handly
Acclaimed Contributor

Re: Question about Chinese language support and HP-UX

>So the fix could be as simple as getting the OS install disk, and installing CDE-ChineseS and CDE-ChineseT?

 

Yes, if you need those.  I.e. since this is a server, you may not need CDE since you use a PC.

JDR45
Frequent Advisor

Re: Question about Chinese language support and HP-UX

The more I look around, the more it seems like all the proper software is installed on the server.  It seems to be capable of displaying Chinese characters.

 

So I've been experimenting with export LANG='zh_TW.eucTW' and the like.

 

But then I would image that my command promt and display will switch over to Chinese, which of course I can't read.

 

edit- which leaves me wondering if there is a way to associate just one file with a different language.

Dennis Handly
Acclaimed Contributor

Re: Question about Chinese language support and HP-UX

>I've been experimenting with export LANG='zh_TW.eucTW' and the like.

>my command prompt and display will switch over to Chinese, which of course I can't read.

 

You can always just use LANG for one command:

$ LANG=zh_TW.eucTW date

>if there is a way to associate just one file with a different language.

 

On HP-UX, files just have data in them.  Only the user knows what's there and what locale.