星期四, 10月 26, 2006

perl的locale error

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = “en_CN:en_US:en_GB:en”,
LC_ALL = (unset),
LC_CTYPE = “zh_CN.UTF-8″,
LANG = “en_US.UTF-8″
are supported and installed on your system.
perl: warning: Falling back to the standard locale (”C”).

因新版的perl支援locale,所以把locale玩爛了會讓perl每次都跑error出來
很煩....

Sol:
export LC_ALL = “C”
dpkg-reconfigure locales