Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For some reason, today, everytime I hit tab in the terminal this shows up:

cat bash: warning: setlocale: LC_CTYPE: cannot change locale (en_CA)

Display all 150 possibilities? (y or n)

This particular one happens when I type cat then hit TAB. I never changed any setting or anything. Anyone know what's going on?

share|improve this question
    
Does it still happen if you turn off the completion added by the bash-completion package for cat? complete -r cat and then cat <TAB> again. –  geirha May 3 '11 at 6:32
    
well, first of all, please don't double post. I see you have also asked this. –  theTuxRacer May 3 '11 at 6:40
add comment

1 Answer

up vote 1 down vote accepted

In the console, type

sudo dpkg-reconfigure locales

Select the locale that is relevant, and press spacebar. You will see an asterisk indicating the selected locale. Press Tab, to highlight OK. THen press Enter. Same for the next screen. That should regenerate the environment locale for your installation of Ubuntu.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.