Return-Path: Delivered-To: apmail-spamassassin-users-archive@www.apache.org Received: (qmail 55611 invoked from network); 13 Jan 2010 17:15:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 17:15:57 -0000 Received: (qmail 34509 invoked by uid 500); 13 Jan 2010 17:15:54 -0000 Delivered-To: apmail-spamassassin-users-archive@spamassassin.apache.org Received: (qmail 34466 invoked by uid 500); 13 Jan 2010 17:15:54 -0000 Mailing-List: contact users-help@spamassassin.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@spamassassin.apache.org Received: (qmail 34458 invoked by uid 99); 13 Jan 2010 17:15:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 17:15:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bob@proulx.com designates 216.17.153.58 as permitted sender) Received: from [216.17.153.58] (HELO joseki.proulx.com) (216.17.153.58) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 17:15:47 +0000 Received: from dementia.proulx.com (dementia.proulx.com [192.168.230.115]) by joseki.proulx.com (Postfix) with ESMTP id 8DAE6213A0; Wed, 13 Jan 2010 10:15:26 -0700 (MST) Received: by dementia.proulx.com (Postfix, from userid 1000) id 875363CC1FD; Wed, 13 Jan 2010 10:15:26 -0700 (MST) Date: Wed, 13 Jan 2010 10:15:26 -0700 From: Bob Proulx To: "Rosenbaum, Larry M." Cc: "users@spamassassin.apache.org" Subject: Re: Spamd startup locale question Message-ID: <20100113171526.GA27032@dementia.proulx.com> Mail-Followup-To: "Rosenbaum, Larry M." , "users@spamassassin.apache.org" References: <43C68785C2728049AF86B0ECB240A15112F8C4DFDB@EXCHMB.ornl.gov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43C68785C2728049AF86B0ECB240A15112F8C4DFDB@EXCHMB.ornl.gov> User-Agent: Mutt/1.5.18 (2008-05-17) Rosenbaum, Larry M. wrote: > SpamAssassin Server version 3.2.5 > running on Perl 5.8.8 > with zlib support (Compress::Zlib 2.011) > SunOS ornl72 5.9 Generic_122300-07 sun4u sparc SUNW,Sun-Fire-V240 > > What causes the following error message when restarting spamd? > > perl: warning: Setting locale failed. > perl: warning: Please check that your locale settings: > LC_ALL = (unset), > LANG = "en_US" > are supported and installed on your system. > perl: warning: Falling back to the standard locale ("C"). Perl emits that error when it cannot find the locale files for the specified locale. It appears that on those machines the en_US locale is not configured. You can double check this manually using something like the following command. $ LANG=en_US perl -e 0 The '-e 0' executes a very small perl script "0" which doesn't do anything. But when perl loads it will perform startup code looking for the locale just the same. If you get an error then it verifies that the locale is not installed. At least not for perl. Note that en_US probably isn't the best locale for you to use. For your own personal use you would probably want en_US.UTF-8 instead. That is probably why it emits this error on some of your machines. Those probably do not have en_US available because they probably have en_US.UTF-8 available instead. $ LANG=en_US.UTF-8 perl -e 0 > This happens on some, but not all, of our systems running spamd. > All the startup files contain > > LANG=en_US > export LANG Instead of setting "en_US" in the startup script I think you might be better served by setting "C" (aka "POSIX") there instead. Or perhaps unsetting it entirely. Unset values default to C/POSIX. It is operating as a system daemon and I don't think needs any specific locale set. Better to use a standard one. C/POSIX is standard while the others are not. Also the regular expression engine is much faster in the standard locale. And the standard locale should work on every machine everywhere. $ LC_ALL=C perl -e 0 Bob