perl and locales

S. Anthony Sequeira tony at sequeira.org.uk
Mon Jan 24 11:16:35 PST 2005


On Mon, 2005-01-24 at 17:32 +0000, Richard Molton wrote:
> /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such
> file or directory.
> /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such
> file or directory.
> /usr/bin/locale: Cannot set LC_ALL to default locale: No such file
> or directory.
> 
> 
> > LANG=[en]_[GB]
> > LC_CTYPE="[en]_[GB]"
> > LC_NUMERIC="[en]_[GB]"
> > LC_TIME="[en]_[GB]"
> > LC_COLLATE="[en]_[GB]"
> > LC_MONETARY="[en]_[GB]"
> > LC_MESSAGES="[en]_[GB]"
> > LC_PAPER="[en]_[GB]"
> > LC_NAME="[en]_[GB]"
> > LC_ADDRESS="[en]_[GB]"
> > LC_TELEPHONE="[en]_[GB]"
> > LC_MEASUREMENT="[en]_[GB]"
> > LC_IDENTIFICATION="[en]_[GB]"
> > LC_ALL=[en]_[GB]

Try this:

cd /etc

find . -type f -print | xargs grep LC_

and post the output please

I'm trying to find where these are set, because they appear wrong.  Mine
is:

$ locale
LANG=en_GB
LC_CTYPE="en_GB"
LC_NUMERIC=C
LC_TIME=C
LC_COLLATE=C
LC_MONETARY=C
LC_MESSAGES=C
LC_PAPER="en_GB"
LC_NAME="en_GB"
LC_ADDRESS="en_GB"
LC_TELEPHONE="en_GB"
LC_MEASUREMENT="en_GB"
LC_IDENTIFICATION="en_GB"
LC_ALL=


-- 
A stitch in time saves nine.





More information about the lfs-support mailing list