changing locale
HI all,
When I got my laptop, linux was already installed. It was all installed in French. My problem is that I was to change locale or just add to them. I need to have eng_us When I run some commands i get: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_PAPER = "fr_BE", LC_ADDRESS = "fr_BE", LC_MONETARY = "fr_BE", LC_SOURCED = "1", LC_NUMERIC = "fr_BE", LC_TELEPHONE = "fr_BE", LC_MESSAGES = "en_US", LC_COLLATE = "en_US", LC_IDENTIFICATION = "fr_BE", LC_MEASUREMENT = "fr_BE", LC_CTYPE = "en_US", LC_TIME = "en_US", LC_NAME = "fr_BE", LANG = "en_US" are supported and installed on your system. I checked for the locale installed and I have: C CP1251 ISO-8859-1 ISO-8859-10 ISO-8859-13 ISO-8859-14 ISO-8859-15 ISO-8859-2 ISO-8859-3 ISO-8859-4 ISO-8859-5 ISO-8859-7 ISO-8859-9 KOI8-R KOI8-U POSIX UTF-8 fr fr_BE fr_BE.ISO-8859-1 fr_BE.ISO-8859-15 fr_BE.UTF-8 fr_CA fr_CA.ISO-8859-1 fr_CA.ISO-8859-15 fr_CA.UTF-8 fr_CH fr_CH.ISO-8859-1 fr_CH.ISO-8859-15 fr_CH.UTF-8 fr_FR fr_FR.ISO-8859-1 fr_FR.ISO-8859-15 fr_FR.UTF-8 fr_LU fr_LU.ISO-8859-1 fr_LU.ISO-8859-15 fr_LU.UTF-8 français french Also, Whenever I open a console I get: locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Just so you know, I have mandrake 10.1 installed kde3.2. I dont know how to change locale or add to it. It should be possible. If so, would you let me know how. Thanks, Ghita |
Anyone know how to fix the locale problem. Any hints ?
Your help would be appreciated |
jus try this(prototype for setlocale sys call)
include<locale.h> char setlocale(int category,const char* locale); category will be whtever u wanted; say LC_ALL locale is either C , POSIX ,en_US hope i understood wht u wanted bye |
Sorry but where am I supposed to do this? Where is the setlocale supposed to be?
Just to make sure what you are telling me to do is what I need. In a simpler way, I need en_US , en_US.UTF8 to be included in locale. When I do locale -a, the encodings that show are all for French. thanks again |
All times are GMT -5. The time now is 12:18 AM. |