When i started to use ssh on my new mac laptop i discoverd someting weird. When i run a perl program on the other side i got some errors:
perl: warning: Setting locale failed.
....
perl: warning: Falling back to the standard locale ("C").
This was a but frustrating as I was testing perl programs on a staging system before we took them live, and this was a enoying.
I did some googling and found a problem. The problem is /etc/ssh/ssh_config and the fact that Apple in OSX has set SendEnv LANG LC_* so that the local language is passed in to the remote host.
This might be a good thing, but when the remote system don't have the right locale installed it can be a problem. I usually prefer that the local system specifies is.
So I was looking into how to override this in my local .ssh/config file. But apparently you can't.
There is atleast 2 different patches submitted to the ssh developers but nothing has gotten into the source yet.
So I did the only easy way, and commented out the line in /etc/ssh/config.
# SendEnv LANG LC_*
And now it works.