Monday, October 26, 2015

RaspberryPi perl: warning: Setting locale failed.

Sometime I got so mad when I saw this error. So here is the solution:

  • Stop forwarding locale from the client. Do not forward the locale environment variable from your local machine to the server. You can comment out the SendEnv LANG LC_* line in the local /etc/ssh/ssh_config file.
  • Stop accepting locale on the server. Do not accept the locale environment variable from your local machine to the server. You can comment out the AcceptEnv LANG LC_* line in the remote /etc/ssh/sshd_config file.

No comments:

Post a Comment