how to solve Ubuntu setlocale() warning
bob 295
icanprogram-sKcZck+fQKg at public.gmane.org
Thu Oct 14 13:30:18 UTC 2010
On Wednesday 13 October 2010 06:59 pm, Lennart Sorensen wrote:
> On Wed, Oct 13, 2010 at 06:16:00PM -0400, bob 295 wrote:
> > Thanks for all the responses to my Ubuntu repository question. I've
> > managed to get a system configured with all the necessary tools now.
> >
> > When I run any BASH script I get a setlocale() warning. It doesn't seem
> > to affect the script but I'd like to see if I can remove it. Here is a
> > snip of the warning:
> >
> > =========== begin snip1 ============
> > /bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
> > hi bob
> > =========== end snip 1 =============
> >
> > I poked around the Net. Some suggested running "dpkg-reconfigure
> > locale". Did that and nothing much changed. Here is the response I get
> > when I run "locale" on the system:
>
> And which locales did you select when you reconfigured locales (not
> locale)?
>
> I tend to enable en_CA and en_US myself (the UTF8 versions at least).
>
> > =========== begin snip2 =============
> > 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 LANG=en_US
> > LC_CTYPE="en_US"
> > LC_NUMERIC="en_US"
> > LC_TIME="en_US"
> > LC_COLLATE="en_US"
> > LC_MONETARY="en_US"
> > LC_MESSAGES="en_US"
> > LC_PAPER="en_US"
> > LC_NAME="en_US"
> > LC_ADDRESS="en_US"
> > LC_TELEPHONE="en_US"
> > LC_MEASUREMENT="en_US"
> > LC_IDENTIFICATION="en_US"
> > LC_ALL=en_US
> >
> > =========== end snip2 ==============
> >
> > Any suggestions?
> >
> > Thanks again in advance for your help.
Here is what I get when I run dpkg-reconfigure locales
======= begin snip =============
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = "en_US",
LANG = "en_US"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
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
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US)
Generating locales...
en_AG.UTF-8... up-to-date
en_AU.UTF-8... up-to-date
en_BW.UTF-8... up-to-date
en_CA.UTF-8... up-to-date
en_DK.UTF-8... up-to-date
en_GB.UTF-8... up-to-date
en_HK.UTF-8... up-to-date
en_IE.UTF-8... up-to-date
en_IN.UTF-8... up-to-date
en_NG.UTF-8... up-to-date
en_NZ.UTF-8... up-to-date
en_PH.UTF-8... up-to-date
en_SG.UTF-8... up-to-date
en_US.UTF-8... up-to-date
en_ZA.UTF-8... up-to-date
en_ZW.UTF-8... up-to-date
Generation complete.
====== end snip =========
This is an Ubuntu system and if I understand things it won't prompt me for
locales like it does on a true Debian system.
bob
--
The Toronto Linux Users Group. Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists
More information about the Legacy
mailing list