Now I got a Mac from my work instead of my old dying Lenovo, I noticed that every time I ssh from it to one of our supercomputers, Perl complains about locale problems. Something like this:
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_GB.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").
Or something irritating as this. The problem is that Mac is a bit ahead with locales, and it ssh takes those locales when you connect to another machine.
I fount the solution at Vivek Gite’s website, and it couldn’t be simpler. Disable locale setting on your terminal. Like this (I took this image from Vivek’s site): open terminal settings and go to the advanced tab (the Settings now shows as Profiles on newer versions of Mac OS):