locale problem LC_CTYPE cannot change locale

After setup Ubuntu Linux, the one abnormal thing I found on Terminal is that it so often appear the below message when I used Tab for autocomplete shortcut

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

It appears so distrubing:

$sudo cd anbash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)

Here is how to fix it.
1. $ sudo locale-gen en_GB.UTF-8
2. vim edit /etc/default/locale
3. Add this into it LC_ALL=”en_GB.UTF-8″
4. Save it and run

$export LC_ALL="en_GB.UTF-8"
Advertisements