how to solve Ubuntu setlocale() warning

Lennart Sorensen lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys at public.gmane.org
Thu Oct 14 14:58:30 UTC 2010


On Thu, Oct 14, 2010 at 10:19:11AM -0400, bob 295 wrote:
> If I type 
> 
> export LC_ALL="en_US.UTF-8"
> 
> the warning disappears !!!    Didn't change the LANG environment variable.   
> Now the "locale" command also runs without warnings.   
> 
> Is there a mechanism to create a locale alias for en_US?  or do I have to add 
> the line
> 
> LC_ALL="en_US.UTF-8"
> 
> to 
> 
> /etc/default/locale
> 
> as some on the Net are suggesting for an Ubuntu system.
> 
> Just curious do you know where LC_ALL is defined on an Ubuntu system?   I did 
> some cursory grep's in /etc and in my hidden files and it didn't come up.
> 
> Thanks in advance for all your help.

On debian, the default is set when you answer the dpkg-reconfigure
locales questions.  But you may have to run it with the right priority
to get the question at all.

Personally I use en_CA.UTF8.

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