How can I fix a locale warning from perl?
From: ?http://stackoverflow.com/questions/2499794/how-can-i-fix-a-locale-warning-from-perl When I run? perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset),LC_ALL = (unset),LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). Your OS doesn't know about? You didn't mention a specific platform,but I can reproduce your problem: % uname -a OSF1 hunter2 V5.1 2650 alpha % perl -e exit perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LC_ALL = (unset),LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). My guess is you used ssh to connect to this older host from a newer desktop machine. It's common for? AcceptEnv LANG LC_* which allows clients to propagate into new sessions the values of those environment variables. The warning gives you a hint about how to squelch it if you don't require the full-up locale: % env LANG=C perl -e exit % or with bash: $ LANG=C perl -e exit $ For a permanent fix,choose one of
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |