[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl locale问题。



On Mon, Jul 29, 2002 at 03:14:28PM +0800, Eric.Hu wrote:
> 	Perl: Warning: Setting locale failed.
>     Perl: Warning: Please check that your loacle settings:
>             LANGUAGE = (unset),
>             LC_ALL = "zh_CN.GB2312",
>             LC_CTYPE = "zh_CN.GB2312",
>             LANG = "zh_CN.GB2312"
>           are supported and installed on your system.
>     Perl: Warning: Falling back to the standard locale ("C").
> 
>   我已经安装了Locale,设置了/etc/locale.gen,并用locale-gen产生了
> GB2312和UTF-8两个locale。相关的环境变量也按照debian-chinese-fag
> 作了设置,还需要做什么?

See your /usr/lib/locale/zh_CN, you need a LC_CTYPE there.
man localedef
man setlocale

You can do a:
localedef -c -i zh_CN -f zh_CN GB2312

-- 
hashao|        为学日益,为道日损。损之又损,以至于无为。
hashao|        无为而无不为。取天下常以无事,及其有事,不足以取天下。



Reply to: