how to solve Ubuntu setlocale() warning

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Wed Oct 13 22:59:29 UTC 2010


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.

-- 
Len Sorensen
--
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