This page may be out of date. Submit any pending changes before refreshing this page.
Hide this message.

How can we fix SSH locale problem in Mac OS X 10.7 (Lion) -- user@servername:~$ cd /var-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) -- when we push "tab" button?

press tab button to complete your directory list but showing this annoying warning: user@servername:~$ cd /var-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)
2 Answers
Randy Zhang
Randy Zhang, project manager, foreign trading(export), manufacturing.
2.7k Views
This solved my local problems in Lion (a little different from yours), but FYI-
http://stackoverflow.com/questio...
Quote:

Here is how to solve it on Mac OS Lion (10.7):
add the following lines to your bashrc or bash_profile:
# Setting for the new UTF-8 terminal support in Lion
export LC_CTYPE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
In my MBP running 10.7.5, I just disabled "Settings->Advanced->Set locale environment variables on startup", encoding set to UTF-8, fixed :)