"Perl: warning: Setting locale failed". Locale not available.
I've tried the usual avenues (namely Google), but none of the solutions offered seem to work!
The problem in short is the following. Whenever I open my bash shell, I get the following annoying message: Quote:
Any suggestions would be much appreciated! |
In your .bashrc or .bash_profile, add
Code:
export LC_ALL=C |
Thanks Lougavulin. But that didn't work!
|
Did you reload your .bashrc or .bash_profile ?
So to test it : Code:
perl -e exit Code:
export LC_ALL=C If it does, modify your .bashrc or .bash_profile, or if you are root on the system add it somewhere into /etc/profile.d/. |
Quote:
Code:
locale -a Code:
grep en_KE /usr/share/i18n/SUPPORTED |
Thank you to everyone who's taken the time to respond!
Yes, lougavulin, I reloaded .bashrc Quote:
Quote:
Results for locale -a: Code:
C Appending "export LANG=en_KE.UTF-8" to my .bashrc file gets rid of the "Setting locale failed" message, but only in the current tab. |
i think you need to actually install some locales.
i think you can only use those that show up when you issue 'locale -a'. there's no english at all??? please read the wiki i linked. and yes, it seems that en_KE is unavailable. |
The solution in this case (on KDE) was as follows:
Go to KDE System Settings -> Regional Settings -> Formats. Change region from Kenya (en_KE) to United Kingdom (en_GB). No more perl setting locale failed warnings! |
All times are GMT -5. The time now is 11:34 AM. |