Re: locale not set properly
On Wed, Jan 23, 2002 at 05:14:53PM +0900, Tatsuya Kinoshita wrote:
> Show the details of your problem.
> (Run `locale-gen', `cat /etc/locale.gen', and `locale')
Thanks for your reply. The output is below.
After I saw this output, I went back and checked my /etc/environment
again and discovered mistakes on the last two lines where I did not
have " " and there were spaces on both sides of the =
Correcting that (or removing /etc/environment), made the problem going
away.
This is what was in my /etc/environment after the correction:
LANG=POSIX
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME=it_IT.ISO-8859-1
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LANGUAGE="en_ZA"
LC_ALL="POSIX"
---------------------------------------
11:10:08 root@bywoner:/etc/webmin# locale-gen
Generating locales...
af_ZA.ISO-8859-1... done
en_ZA.ISO-8859-1... done
Generation complete.
11:43:46 root@bywoner:/etc/webmin# cat /etc/locale.gen
# This file lists locales that you wish to have built. You can find a
list
# of valid supported locales at
/usr/share/doc/locales/SUPPORTED.gz. Other
# combinations are possible, but may not be well tested. If you change
# this file, you need to rerun locale-gen.
af_ZA ISO-8859-1
en_ZA ISO-8859-1
11:43:53 root@bywoner:/etc/webmin# locale
LANG=POSIX
LC_CTYPE=en_ZA
LC_NUMERIC=POSIX
LC_TIME=it_IT.ISO-8859-1
LC_COLLATE=POSIX
LC_MONETARY=POSIX
LC_MESSAGES=POSIX
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=
This was the type of error I got earlier:
11:44:58 js@bywoner:/etc/webmin$ man locale
(null): can't set the locale; make sure $LC_* and $LANG are correct
Reformatting locale(1), please wait...
LOCALE(1) Debian GNU/Linux LOCALE(1)
NAME
locale - Get locale-specific information.
-----------------------
Thanks again. Your request for detail helped me to get a longstanding
problem sorted out.
Johann
--
Johann Spies Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch
"Look not every man on his own interests, but every man
also on the things of others. Let this mind be in you,
which was also in Christ Jesus"
Philippians 2:4,5
Reply to: