How do I verify my locale information is "correct"?
hey all!
I'm running a heavily modified slackware 8.1 distro. While trying to compile a program, I'm getting an error with the en_US (I assume that it's saying it can't find it) locale setting. It does exist, but I'm not sure if there's something I need to do to make sure that the locale settings are as they should be, or if there's a locale.cache file that needs to be updated or something.. I'm running an older version of glibc (2.1.3) and would like to upgrade it, but that makes me nervous.. (= Any knowledge to share? Any questions aboot my system? TLD |
locale at a prompt tells you locale-specific information.
If something isn't right you might want to look at localedef... Other than that I haven't messed with it... Good luck |
BF: I appreciate the reply. I've already tested and checked everything of which I can think, including the env setting for locale (as verified by running locale).
Part of the troubles, I fear, are that I did some system consolidation of duplicate directories (such as the items in /usr/shared), which happens to include the locale information. See, I compiled and installed a newer version of glibc, but to a non-standard location, so as to preserve my older version.. and in doing so, I changed the existing locale information to duplicate the new locale information in the new glibc install dir. I think this of itself is the reason why it's broken. I was toying with what I didn't fully understand. (= I tend to do this, so it's not surprising to me I broke something. (= |
If you want to test locale...
(better late than never :) )
My system: SuSE 10.0, kernel 2.6.13, KDE 3.4, bash 3.00, locales ru_RU.UTF-8, ru_RU.koi8r, ru_RU.cp1251 Assume you are in ru_RU.UTF-8 and want to verify either ru_RU.koi8r or ru_RU.cp1251 installed Via bash. Create executable test-locale.sh PHP Code:
./test-locale.sh cp1251 ./test-locale.sh koi8r ./test-locale.sh utf8 Via Perl Create executable test-locale.pl PHP Code:
./test-locale.pl koi8-r ./test-locale.pl koi8r ./test-locale.pl cp1251 Via PHP. Create executable test-locale.php PHP Code:
Try: ./test-locale.php koi8-r ./test-locale.php koi8r ./test-locale.php cp1251 ./test-locale.php utf8 |
All times are GMT -5. The time now is 09:22 AM. |