Installing Hong Kong Locale


 
Thread Tools Search this Thread
Operating Systems Solaris Installing Hong Kong Locale
# 1  
Old 04-12-2010
Installing Hong Kong Locale

Any help appreciated. I am connecting (FTP) to a NAS PRO box that is currently installed on one of our subnets in Hong Kong from a Solaris
system running Solaris 10 (our backup server). The NAS box has a backup job that backs up all user documents locally. I am trying to ftp the docs from the NAS to our backup server however the docs are saved in Chinese characters (Hong Kong).

I have tried installing the Hong Kong Traditional Chinese Localization by doing the following:

Code:
 
# localeadm -a zh_HK -d /cdrom/sol_10_305_lang_sparc
Log file is /var/sadm/install/logs/localeadmin_install.2010-04-09.7
 
locale/region name is zh_hk
 
Warning! You have chosen the zh_HK locale rather than a region to install.
This locale is part of the Traditional Chinese (Hong Kong) region. If you choose to continue, all of the locales in this region will
 be installed.
 
Do you wish to continue? [y/n]: y
Adding packages for Traditional Chinese (Hong Kong) (hongkong)
 
Region hongkong will be installed.
 
 
Operating System is Solaris 10
 
Checking for a valid disk image:
 
 
Devices are /cdrom/sol_10_305_lang_sparc
 
Checking for a solaris 1
|...............|
No solaris1 image has been found in
/cdrom/sol_10_305_lang_sparc/components/TraditionalChineseHongKong/sparc/Packages
 
 
Checking for a solaris 1
|...............|
No solaris1 image has been found in
/cdrom/sol_10_305_lang_sparc/components/TraditionalChineseHongKong/sparc/Packages
 
 
Checking for a solaris 1
|...............|
No solaris1 image has been found in
/cdrom/sol_10_305_lang_sparc/components/TraditionalChineseHongKong/sparc/Packages
 
 
Checking for a solaris 1
|...............|
No solaris1 image has been found in
/cdrom/sol_10_305_lang_sparc/components/TraditionalChineseHongKong/sparc/Packages
 
 
Checking for a solaris 1
|...............|
No solaris1 image has been found in
/cdrom/sol_10_305_lang_sparc/components/TraditionalChineseHongKong/sparc/Packages
 
 
Checking for a solaris 1
|...............|
No solaris1 image has been found in
/cdrom/sol_10_305_lang_sparc/components/TraditionalChineseHongKong/sparc/Packages
 
You need at least a solaris1 image to add any locales.
Please provide the path to a solaris1 image.
 
 
Please enter the path to this image/disk, or enter 'q' to quit:
 (if this image is on CD-ROM, please mount the disk and give the path to the CD-ROM drive e.g. /cdrom/cdrom0)
 
As I was unable to install using the localeadm command I used ./installer
 
1. No Install
2. Default Install
3. Custom Install
 
   Selection for Solaris 10 Swedish Localization [2] 1
 
Select the type of installation you want for each product.
 
      No Install  Default Install  Custom Install  Product
      ----------  ---------------  --------------  -------
 0.   [X]         [ ]              [ ]             Solaris 10 Japanese
Localization
 1.   [X]         [ ]              [ ]             Solaris 10 Korean
Localization
 2.   [X]         [ ]              [ ]             Solaris 10 Simplified
Chinese Localization
 3.   [X]         [ ]              [ ]             Solaris 10 Traditional
Chinese Localization
 4.   [ ]         [X]              [ ]             Solaris 10 Hong Kong
Traditional Chinese Localization
 5.   [X]         [ ]              [ ]             Solaris 10 German
Localization
 6.   [X]         [ ]              [ ]             Solaris 10 Italian
Localization
 7.   [X]         [ ]              [ ]             Solaris 10 French
Localization
 8.   [X]         [ ]              [ ]             Solaris 10 Spanish
Localization
 9.   [X]         [ ]              [ ]             Solaris 10 Swedish
Localization
 10.                                               Done
   Enter the number next to the product you wish to change.  Select "Done" when
   finished [10]: 10
Checking disk space.
 
 
The following items will be installed:
 
Product: Solaris 10 Hong Kong Traditional Chinese Localization
Location: /usr
Size: 115.78 MB
--------------------------------------------------------------
     Solaris 10 Traditional Chinese Common Localization    89.22 MB
SunOS 4.x Asian Compatibility Localization    812 bytes
Solaris 10 Traditional Chinese HK Localization    23.76 MB
Asian User Defined Character Tool for CDE    2.81 MB
 
 
 
Ready to Install
 
1. Install Now
2. Start Over
3. Exit Installation
 
   What would you like to do [1]? 1
 
Installing Solaris 10 Hong Kong Traditional Chinese Localization
|-1%--------------25%-----------------50%-----------------75%--------------100%|
 
 
Installation details:
 
     Product                                               Result     More Info
 1.  Solaris 10 Hong Kong Traditional Chinese Localization  Installed
Available
 
 2.  Done
 
   Enter the number corresponding to the desired selection for more
   information, or enter 2 to continue [2]: 2

This does not seem to have made any difference, when I run the localeadm -lc command it still shows only my default locale.

Im not sure if this is the correct way to install the Hong Kong locale or if this is going to resolve the issue of ftp,ing chinese characters so that the Solaris server can recognise the files. At this stage I cannot type or copy & paste the name of the files to be ftp'd across.

If anyone has had a similiar problem and managed to resolve then any help would be much appreciated.
# 2  
Old 04-13-2010
Code:
 
sys-unconfig

answer on few question , you can change setting for locale any keyboard
# 3  
Old 04-13-2010
@solaris_user: Please don't advise to blindingly run "sys_unconfig" on production systems. This command is overkill and will break services and processes.

@jamba1: what are your default and current locales ?
Code:
grep -v "^#" /etc/default/init
echo ====
set | grep LC

# 4  
Old 04-20-2010
Code:
# locale -a
C
POSIX
en_AU
en_AU.ISO8859-1
en_AU.UTF-8
en_NZ
en_NZ.ISO8859-1
en_NZ.UTF-8
iso_8859_1
zh_HK.BIG5HK
zh_HK.UTF-8
zh_TW
zh_TW.BIG5
zh_TW.EUC
zh_TW.UTF-8

# grep -v "^#" /etc/default/init
TZ=Australia/Queensland
CMASK=022

# set | grep LC
MAILCHECK=600

# pwd
/usr/lib/locale
# ls -ltr
total 46
-rw-r--r--   1 root     bin         1848 Dec  9  2004 lcttab
-rw-r--r--   1 root     bin          270 Dec  9  2004 geo
drwxr-xr-x   8 root     bin          512 Jan  4  2007 C
drwxr-xr-x   9 root     bin          512 Jan  4  2007 en_NZ.ISO8859-1
drwxr-xr-x  10 root     bin          512 Jan  4  2007 en_AU.UTF-8
drwxr-xr-x   9 root     bin          512 Jan  4  2007 en_AU.ISO8859-1
drwxr-xr-x   3 root     bin          512 Jan  4  2007 en_AU
drwxr-xr-x  10 root     bin          512 Jan  4  2007 en_NZ.UTF-8
drwxr-xr-x   3 root     bin          512 Jan  4  2007 en_NZ
drwxr-xr-x   4 root     bin          512 Jan  4  2007 iso_8859_1
drwxr-xr-x   5 root     bin          512 Jan  4  2007 common
lrwxrwxrwx   1 root     root           3 Jun 29  2008 POSIX -> ./C
drwxr-xr-x   2 root     bin          512 Apr 12 16:00 zh_TW.EUC
drwxr-xr-x   3 root     bin          512 Apr 12 16:02 zh_HK.BIG5HK
drwxr-xr-x   3 root     bin          512 Apr 12 16:02 zh_HK.UTF-8
drwxr-xr-x   4 root     bin          512 Apr 12 16:02 zh_TW.BIG5
drwxr-xr-x   4 root     bin          512 Apr 12 16:02 zh_TW.UTF-8
drwxr-xr-x   4 root     bin          512 Apr 12 16:02 zh_TW
drwxr-xr-x   3 root     bin          512 Apr 12 16:03 zh_HK.BIG5HK@radical
drwxr-xr-x   3 root     bin          512 Apr 12 16:03 zh_HK.BIG5HK@stroke
drwxr-xr-x   3 root     bin          512 Apr 12 16:03 zh_HK.UTF-8@radical
drwxr-xr-x   3 root     bin          512 Apr 12 16:03 zh_HK.UTF-8@stroke

# 5  
Old 04-21-2010
You haven't set any default locale so you are defaulting to ANSI (7 bit ascii).

You can set it temporarily in your session and test the application needint it like this:
Code:
LC_ALL=zh_HK
export LC_ALL
launch your application here ...

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Error on installing locale

Hi guys, I'm installing locale (en_US.UTF-8) from solaris 10 DVD as follows in a non-global zone: localeadm -a nam -d /cdrom/sol_10_807_sparc/s0/Solaris_10/Product It does install some packages and then prompts : No solaris3 image has been found in... (0 Replies)
Discussion started by: frum
0 Replies

2. Solaris

Locale changes?

I am upgrading a machine to Solaris 10 and noticed a change that would cause a problem for us. We have always used en_US.ISO8859-1 and selected that when setting up the new system. This is the format on our old system $ date Fri Sep 21 10:35:51 PDT 2012 And this is what I got on our old... (1 Reply)
Discussion started by: Bryan.Eidson
1 Replies

3. Shell Programming and Scripting

sftp without locale

Hi all, today i encounter one weird problem. I tried to do the sftp of one file from one server to another and try to load that file in some datawarehouse with a informatica(extraction,tranformation and loading tool) . But the tool is rejecting all later i found that there is some problem in... (0 Replies)
Discussion started by: narang.mohit
0 Replies

4. Solaris

Locale installation..

Hi All, I need to install a swedish locale on a solaris machine(ver. 10).I have the package downloaded.Can anyone please guide me through the steps and things i need to keep in mind when doing the same? (7 Replies)
Discussion started by: sankasu
7 Replies

5. Shell Programming and Scripting

Script to convert GMT to Asia/Hong Kong time

hi friends, this is my first time with this type of script so please pardon my ignorance. i have this script in which a piece of code needs to be added which can have the Asia/Hong kong time as well. system date and format is GMT so no problem with GMT and even EST is covered..i have ato add new... (5 Replies)
Discussion started by: xejatt
5 Replies

6. Solaris

Setting TImezone fr Hong kong

Hi, In solaris how to change the timezone to display to HKT I tried by putting TZ=Hongkong or TZ=Asia/Hong_kong but it is taking me to the display of CST. how to change it to HKT thanks Bala (1 Reply)
Discussion started by: Balamurugan
1 Replies

7. UNIX for Dummies Questions & Answers

Using locale

:confused: Can anyone tell me how to test that locale is working properly in commands like awk, basename, bg, cd, cmp, col, command, csplit, cut, echo, egrep For ex. suppose I have changed locale using LC_ALL=german_germany.8859 export LC_ALL now i want to test(see) it's effect on... (3 Replies)
Discussion started by: alodha
3 Replies

8. Solaris

Installing European Locale Packages

I have installed the locale package for en_GB and if i do a locale -a (after reboot) it will display: en_GB en_GB.ISO8859-1 en_GB.ISO8859-15 en_GB.ISO8859-15@euro (short version) and i get this when typing only 'locale': # locale LANG=en_GB LC_CTYPE="C" LC_NUMERIC=C LC_TIME="C"... (2 Replies)
Discussion started by: xqtor
2 Replies

9. UNIX for Dummies Questions & Answers

Input Locale

Hi Guys, Any ideas on how to install the zh_CN (Simplified Chinese) input locale for AIX5.2 ? Can't seem to find it any where. S. (2 Replies)
Discussion started by: stumpy
2 Replies

10. Programming

Locale setting

Hi, In the sample program, I am trying to print a Japanese string. The code is as follows: main() { setlocale(LC_ALL,""); printf("String is %S\n", L"JAP"); // Note "JAP" is a valid japanese string } If locale is C, the string gets printed, but if it a valid japanese locale, it... (1 Reply)
Discussion started by: Dippan
1 Replies
Login or Register to Ask a Question