USING LOCALES (localeå—符集问题)
- Posted at April 10th, 2006 13:08
- Filed under 无分类
在resinå¯åŠ¨åœæ¢æˆ–执行perl -v时会出现如下错误æç¤º:
[CODE]perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").[/CODE]
是由于本地å—符集LANGå’ŒLC_ALL设置的问题,解决方法:
export LC_ALL=en_US.ISO8859-1
export LANG=en_US.ISO8859-1
æ‰§è¡Œæˆ–å°†å…¶åŠ å…¥/etc/profile,并修改/etc/sysconfig/i18n文件.
å‚考文档: http://perl.active-venture.com/pod/perllocale-using.html
[CODE]perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LANG = "zh_US" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").[/CODE]
是由于本地å—符集LANGå’ŒLC_ALL设置的问题,解决方法:
export LC_ALL=en_US.ISO8859-1
export LANG=en_US.ISO8859-1
æ‰§è¡Œæˆ–å°†å…¶åŠ å…¥/etc/profile,并修改/etc/sysconfig/i18n文件.
å‚考文档: http://perl.active-venture.com/pod/perllocale-using.html
Posted by microsea
- Response
- No Trackback , No Comment
Trackback URL : 无法向此文章发送引用
