Re: Locale 'C' gone?
Incoming from Kevin Mark:
>
> sometime over the past year my locales got zapped. Somehow 'C' is
> gone.
I'm not sure that's possible. However:
- type "locale"
> I now have en_US. Some of the script give me warnings but they work.
> But, I'd like to get 'C' and 'POSIX' back. I've tried
> 'dpkg-reconfigure locales'
> a few times after various upgrades. Any ideas?
If "locale -a | less" shows C and POSIX, you should be able to (as
root) "locale-gen"
Look in root's startup shell scripts (surely, you didn't change them
from bash?). ~root/.bash_profile (or maybe ~root/.profile) and
~root/.bashrc may have things like:
LC_ALL="en_US.ISO-8859-1"
LANG="en_US.ISO-8859-1"
LANGUAGE="en_US.ISO-8859-1"
in them. Comment those out. If that was the problem, logging out
then back in should fix it. If not, check /etc/profile
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- -
Reply to: