[Logcheck-devel] Bug#503000: Bug#503000: logcheck fails due to a perl warning

Gerfried Fuchs rhonda at deb.at
Wed Oct 22 07:11:20 UTC 2008


Am Dienstag, den 21.10.2008, 19:11 +0200 schrieb Jan Evert van
Grootheest:
> Package: logcheck
> Version: 1.2.68
> Severity: important
> 
> I upgraded my lenny server today. I guess the previous update is something like two weeks ago.
> Now logcheck started sending mails containing only this perl error:
> This email is sent by logcheck. If you wish to no-longer receive it,
> you can either deinstall the logcheck package or modify its
> configuration file (/etc/logcheck/logcheck.conf).
> 
> System Events
> =-=-=-=-=-=-=
> 	LANG = "en_US.UTF-8"
> 	LANG = "en_US.UTF-8"
> 	LANGUAGE = (unset),
> 	LANGUAGE = (unset),
> 	LC_ALL = (unset),
> 	LC_ALL = (unset),
>     are supported and installed on your system.
>     are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> perl: warning: Falling back to the standard locale ("C").
> perl: warning: Please check that your locale settings:
> perl: warning: Please check that your locale settings:
> perl: warning: Setting locale failed.
> perl: warning: Setting locale failed.
> -- end quote --
> 
> Obviously there's something wrong with perl. But I also consider it a bug that logcheck produces
> 'half' a result in this manner. It should really not be doing this.

 It's not really just wrong with perl but your general locale setup.
Please see /etc/environment and /etc/locale.gen. I expect that you have
a LANG=en_US.UTF-8 entry in the former but not in the later. This will
spit out messages like this with every other perl code you are using,
like e.g. also in upgrade logs, and I expect you haven't filed a
bugreport against apt for that, did you. :)

 Pretty please tell locales to generate the locale you set, that's the
only proper fix for that. This is not limited to logcheck at all, it
affects your whole system. Go through "dpkg-reconfigure locales" as
root. If you don't have the locales package installed you shouldn't set
LANG to anything else but the standard locale (C or POSIX), especially
not systemwide.

 Thanks. :)
Rhonda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20081022/1e04ea8d/attachment.pgp 


More information about the Logcheck-devel mailing list