setlocale: LC_CTYPE: cannot change locale (UTF-8) [closed]

When I press tab for autocompletion I get this error:

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

I've tried running this:

locale-gen en_US en_US.UTF-8
dpkg-reconfigure locales
reboot

But it doesn't help. Do you know what is missing?

I'm running Ubuntu 13.04.


Fixed it by adding these lines to ~/.bash_profile on my local machine (OSX).

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

You may have some odd setting in /etc/default/locale. "UTF-8" is not a complete locale name.