Hi, I'm running the latest version of Q-S 2.11 and this is the cose inside my version:
#Set locale to "en_US" (English). That way any string checks on forked apps #will tend to be in English - standardizing regex matches my $orig_locale=$ENV{'LC_ALL'}; $ENV{'LC_ALL'}= $ENV{'LANG'} = $ENV{'LANGUAGE'} = 'en_US'; POSIX::setlocale(&POSIX::LC_ALL,'en_US'); If i set en_US.UTF-8 instead of en_US the error was a litle bit different: sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) instead of: sh: warning: setlocale: LC_ALL: cannot change locale (en_US): No such file or directory If I change the code and set locale inside qmail-scanner.pl to 'C', like your, the errors goes away. Il 2015-02-11 20:01 Scott Chandler ha scritto: > What version of qmail-scanner are you running? I am running a really > old > version of 2.01st and the Setlocale function is right at the top of the > qmail-scanner.pl program. Here is what is looks like on mine. > > my $orig_locale=$ENV{'LC_ALL'}; > $ENV{'LC_ALL'}= $ENV{'LANG'} = $ENV{'LANGUAGE'} = 'C'; > POSIX::setlocale(&POSIX::LC_ALL,'C'); > > I am running Fedora 15 and I have never used CentOS but if I remember , > I > think they are quite similar. > > Scott > > -----Original Message----- > From: mizzio [mailto:miz...@sinapto.net] > Sent: Wednesday, February 11, 2015 9:36 AM > To: qmail-scanner-general@lists.sourceforge.net > Subject: Re: [Qmail-scanner-general] FW: Error "setlocale: LC_ALL" on > CentOS > > tried also that with no luck: > > [root@mail ~]# cat /etc/sysconfig/i18n > LANG="en_US.UTF-8" > SYSFONT="latarcyrheb-sun16" > > [root@mail ~]# echo $LANG > en_US.UTF-8 > > > Il 11/02/2015 17:03, Scott Chandler ha scritto: >> >> The fourth line in the log entry you posted shows that the error is >> coming from sh: . This is the program that is generating the error >> message. Have you tried looking at this website: >> http://blog.earth-works.com/2014/02/10/fixing-lc-locale-issues-in-cent >> os-and >> -rhel/ >> >> This site talks about the sh problem that CentOS is having. >> >> Scott >> >> -----Original Message----- >> From: mizzio [mailto:miz...@sinapto.net] >> Sent: Wednesday, February 11, 2015 6:14 AM >> To: qmail-scanner-general@lists.sourceforge.net >> Subject: Re: [Qmail-scanner-general] Error "setlocale: LC_ALL" on >> CentOS >> >> Ciao Alessio, >> >> I have been trying to fix the same behaviour on my centos 6 qmail box >> with no luck at all. >> All the settings related to LANG, LC_ALL have no effect on this error >> in the log. >> The good news is that everything is working fine and this error that >> shows up in the logs doesn't seem to influence anything on the server. >> >> Cheers, >> Maurizio >> >> Il 11/02/2015 12:32, Alessio Cecchi ha scritto: >>> Hi, >>> >>> I'm migrating from Debian 6 to Centos 6 my qmail box. All works fine >>> but when a new email arrives in the log I found these error: >>> >>> @4000000054db31fc102c3c64 tcpserver: status: 1/300 >>> @4000000054db31fc102db364 tcpserver: pid 15154 from 192.168.4.1 >>> @4000000054db31fc1030dfe4 tcpserver: ok 15154 0:192.168.113.137:25 >>> 192.168.4.1.v4.ngi.it:192.168.4.1::47339 >>> @4000000054db3203263ecb5c sh: warning: setlocale: LC_ALL: cannot >>> change locale (en_US): No such file or directory >>> @4000000054db320326a08acc sh: warning: setlocale: LC_ALL: cannot >>> change locale (en_US): No such file or directory >>> @4000000054db32050d9c8904 tcpserver: end 15154 status 0 >>> @4000000054db32050d9c8cec tcpserver: status: 0/300 >>> >>> apparently everything works fine but I want to solve the problem. The >>> LANG of the server is set to en_US.UTF8 (but if I set to en_US is the >>> same). Somebody suggest to set LANG, LANGUAGE, LC_ALL in >>> /etc/enviroments but this not fix the problem. >>> >>> Can anyone help me? >>> Thanks >>> >>> --------------------------------------------------------------------- >>> - >>> -------- Dive into the World of Parallel Programming. The Go Parallel >>> Website, sponsored by Intel and developed in partnership with >>> Slashdot Media, is your hub for all things parallel software >>> development, from weekly thought leadership blogs to news, videos, >>> case studies, tutorials and more. Take a look and join the >>> conversation > now. >>> http://goparallel.sourceforge.net/ >>> _______________________________________________ >>> Qmail-scanner-general mailing list >>> Qmail-scanner-general@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general >>> >> >> ---------------------------------------------------------------------- >> ------ >> -- >> Dive into the World of Parallel Programming. The Go Parallel Website, >> sponsored by Intel and developed in partnership with Slashdot Media, >> is your hub for all things parallel software development, from weekly >> thought leadership blogs to news, videos, case studies, tutorials and >> more. Take a look and join the conversation now. >> http://goparallel.sourceforge.net/ >> _______________________________________________ >> Qmail-scanner-general mailing list >> Qmail-scanner-general@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general >> >> >> ---------------------------------------------------------------------- >> -------- Dive into the World of Parallel Programming. The Go Parallel >> Website, sponsored by Intel and developed in partnership with Slashdot >> Media, is your hub for all things parallel software development, from >> weekly thought leadership blogs to news, videos, case studies, >> tutorials and more. Take a look and join the conversation now. >> http://goparallel.sourceforge.net/ >> _______________________________________________ >> Qmail-scanner-general mailing list >> Qmail-scanner-general@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general >> > > ---------------------------------------------------------------------------- > -- > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. > Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Qmail-scanner-general mailing list > Qmail-scanner-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is > your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. > Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Qmail-scanner-general mailing list > Qmail-scanner-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Qmail-scanner-general mailing list Qmail-scanner-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general