On Sun, Jun 04, 2000 at 12:26:46PM +0800, Kam Tik wrote: > ½Ð°Ý set locale [EMAIL PROTECTED]
man 3 setlocale "... each part of the locale that should be modified is set according to the environment variables. The details are implementation dependent. For glibc, first (regardless of category), the environment variable LC_ALL is inspected, next the environment variable with the same name as the category (LC_COLLATE, LC_CTYPE, LC_MESSAGES, LC_MONETARY, LC_NUMERIC, LC_TIME) and finally the environment variable LANG. The first existing envi ronment variable is used." That is, there should be only one way for proper i18n programs: setting the environment variables. But there are many ways to set the environment... > 1. קï /etc/environment > »Ýn root access¡Aµo²{ CorelLinux 1.1 ¨Ã¨S¦³ /etc/environment¡A¦Û¦æ«Ø¥ß > ¤]¤£¦æ¡A/etc/environment.corel [EMAIL PROTECTED] Because /etc/environment didn't exist in slink? If the login in Corel Linux doesn't use PAM, try adding "ENVIRON_FILE /etc/environment" to /etc/login.def. Otherwise add "auth required pam_env.so" to /etc/pam.d/login. Please correct me if I'm wrong here :p > 2. קï ~/.bashrc > ¥[ export LANG= ¡Bexport LC_ALL = ¡A¦ý¬O¹ï¤£¬O¶] bash shell ªº¥Î®a°_¤£¤F > [EMAIL PROTECTED] csh and tcsh uses /etc/csh.chsrc and ~/.chsrc, not sure about others ... That's why it's better to use /etc/environment if it works. :p Hope the above helps, -- Roger So telnet://e-fever.org spacehunt at e-fever dot org SysOp, e-Fever BBS GnuPG 1024D/98FAA0AD F2C3 4136 8FB1 7502 0C0C 01B1 0E59 37AC 98FA A0AD