Disable automatic locale variables setting in terminal emulator for Mac OS X

Terminal emulators usually send your current locale when conecting to an SSH server. I use Mac OS X in spanish and when I connected to a CentOS server my locale was automatically configured to es_ES.UTF-8 making most command outputs to be in spanish. I prefer using english so I can search error messages easily. Most blogs and web sites (Stackoverflow for example) are in english and I wouldn’t find anything in spanish.

To fix this you just have to disable the automatic locale setting option in your terminal emulator. In Mac OS X Terminal.app it’s in Preferences, Settings, Advance tab, “Set locale environment variables os start up”:

terminal

In iTerm it’s in Preferences, Profiles tab, Terminal tab, “Set locale variables automatically”:

iterm

Ref: http://serverfault.com/questions/336559/how-to-change-my-commandline-locale-after-centos-decided-to-change-it/373410#373410

You might also like

Fix locale problems in Raspbian
If you get errors like this while running commands on your Raspbian:perl: warning: Setting locale...

Collada-dom 3D models having black textures bug solution
I used to have a problem with Collada-dom 3D models textures. Some times they were not correctly applied...

Configure the locale and keyboard layout in Raspbian
I have a keyboard with the spanish layout (with the "ñ" key, etc.) but Raspbian comes by default only...

Change your shell prompt
The same way we added colors to the text in terminal application in Mac OS X, you can change the default...

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.