Debian Bug Tracking System
2004-Jun-05 19:03 UTC
[Logcheck-devel] Bug#214117: marked as done (logcheck: attempt to avoid UTF-8 locale broken)
Your message dated Sat, 05 Jun 2004 14:47:14 -0400 with message-id <E1BWgCI-0002We-00 at newraff.debian.org> and subject line Bug#214117: fixed in logcheck 1.2.22 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 4 Oct 2003 18:52:47 +0000>From elho at psycho.elho.net Sat Oct 04 13:52:41 2003Return-path: <elho at psycho.elho.net> Received: from psycho.elho.net [62.8.228.162] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1A5rWB-000675-00; Sat, 04 Oct 2003 13:52:39 -0500 Received: from elho by psycho.elho.net with local (Exim 3.36 #1 (Debian)) id 1A5rVu-0007gH-00; Sat, 04 Oct 2003 20:52:22 +0200 Date: Sat, 4 Oct 2003 20:52:22 +0200 From: Elmar Hoffmann <elho at elho.net> To: Debian Bug Tracking System <submit at bugs.debian.org> Subject: logcheck: attempt to avoid UTF-8 locale broken Message-ID: <20031004185222.GA27328 at psycho.elho.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Reportbug-Version: 2.30 X-Operating-System: Linux (i686) X-Uptime: 29 days, 23:27 User-Agent: Mutt/1.5.3i Delivered-To: submit at bugs.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_20,HAS_PACKAGE version=2.53-bugs.debian.org_2003_10_03 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_10_03 (1.174.2.15-2003-03-30-exp) Package: logcheck Version: 1.2.15 Severity: normal logcheck tries to avoid using an UTF-8 locale: --8<--- # Make sure that we do not use utf-8 locale LC_CTYPE="" --8<--- but this does not work, an empty LC_CTYPE means falling back to using the value of LANG. The user reporting #136508 apparently had his LC_CTYPE set to an UTF-8 locale but LANG to a non-UTF-8 one so it worked for him. Having switched my system to UTF-8 with a default locale of LANG=en_US.UTF-8, this bug makes logcheck call grep with that locale which due to #214107 ("locales: en_US.UTF-8 treats [ as a space char") breaks various /etc/logcheck/ignore.d.* rules. Furthermore, to actually apply to the forked grep processes, LC_CTYPE has to be exported, not just set. I did not get any error like in #136508, so the actual problem in grep or wherever it was for that user is likely fixed meanwhile and my problem actually is #214107, so 2 options remain either a) remove that line or b) make it export LC_CTYPE=C. a) has the advantage over b) of allowing the rules to match localized log messages. OTOH trouble with other locales that are broken or trigger breakages in grep or elsewhere might show up, but IMHO seeing those problems show up so the package at fault can be fixed is an advantage too, so I think a) is the better solution. If too many problems with it, or things like #206470 ("LC_CTYPE=C speeds 'grep a' 800 times!") bug other users, you could always move the line to /etc/logcheck/logcheck.conf. elmar -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux psycho 2.4.21-grsecurity-1.9.10-evms-2.1.0 #1 Wed Jul 9 17:22:06 CEST 2003 i686 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 Versions of packages logcheck depends on: ii cron 3.0pl1-81 management of regular background p ii debconf 1.3.14 Debian configuration management sy ii debianutils 2.5.5 Miscellaneous utilities specific t ii exim [mail-trans 3.36-8 An MTA (Mail Transport Agent) ii lockfile-progs 0.1.9 Programs for locking and unlocking ii logcheck-databas 1.2.15 A database of system log rules for ii logtail 1.2.15 Returns parts of logfiles that hav ii mailx 1:8.1.2-0.20030521cvs-1 A simple mail user agent ii sysklogd [system 1.4.1-12 System Logging Daemon -- debconf information: * logcheck/security_level: server * logcheck/manage_conffiles: true * logcheck/auto_create_logfiles: false logcheck/upgrade-note: * logcheck/changes: * logcheck/install-note: * logcheck/rules-directories-note: * logcheck/email_address: root * logcheck/rewrite-note: -- .'"`. /"\ | :' : Elmar Hoffmann <elho at elho.net> ASCII Ribbon Campaign \ / `. `' PGP key available via pgp.net against HTML email X `- & vCards / \ --------------------------------------- Received: (at 214117-close) by bugs.debian.org; 5 Jun 2004 18:54:17 +0000>From katie at ftp-master.debian.org Sat Jun 05 11:54:17 2004Return-path: <katie at ftp-master.debian.org> Received: from newraff.debian.org [208.185.25.31] (mail) by spohr.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1BWgJ7-0004Au-00; Sat, 05 Jun 2004 11:54:17 -0700 Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian)) id 1BWgCI-0002We-00; Sat, 05 Jun 2004 14:47:14 -0400 From: Todd Troxell <ttroxell at debian.org> To: 214117-close at bugs.debian.org X-Katie: $Revision: 1.49 $ Subject: Bug#214117: fixed in logcheck 1.2.22 Message-Id: <E1BWgCI-0002We-00 at newraff.debian.org> Sender: Archive Administrator <katie at ftp-master.debian.org> Date: Sat, 05 Jun 2004 14:47:14 -0400 Delivered-To: 214117-close at bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2004_03_25 X-Spam-Level: X-CrossAssassin-Score: 2 Source: logcheck Source-Version: 1.2.22 We believe that the bug you reported is fixed in the latest version of logcheck, which is due to be installed in the Debian FTP archive: logcheck-database_1.2.22_all.deb to pool/main/l/logcheck/logcheck-database_1.2.22_all.deb logcheck_1.2.22.dsc to pool/main/l/logcheck/logcheck_1.2.22.dsc logcheck_1.2.22.tar.gz to pool/main/l/logcheck/logcheck_1.2.22.tar.gz logcheck_1.2.22_all.deb to pool/main/l/logcheck/logcheck_1.2.22_all.deb logtail_1.2.22_all.deb to pool/main/l/logcheck/logtail_1.2.22_all.deb A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 214117 at bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Todd Troxell <ttroxell at debian.org> (supplier of updated logcheck package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster at debian.org) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Saturday, 05 Jun 2004 14:02:47 -0500 Source: logcheck Binary: logcheck logtail logcheck-database Architecture: source all Version: 1.2.22 Distribution: unstable Urgency: low Maintainer: Debian logcheck Team <logcheck-devel at lists.alioth.debian.org> Changed-By: Todd Troxell <ttroxell at debian.org> Description: logcheck - Mails anomalies in the system logfiles to the administrator logcheck-database - A database of system log rules for the use of log checkers logtail - Print log file lines that have not been read Closes: 187496 214117 244172 249181 249474 252078 252174 252216 252556 252597 252661 252712 Changes: logcheck (1.2.22) unstable; urgency=low . maks: * Remove broken attempt to avoid UTF-8. (Closes: #214117) * Update automount, innd, kernel, openvpn, postfix rules. (Closes: #252216, #249474, #244172, #252174, #187496, #249181, #252712) * Better readability of greplogoutput() in logcheck. * Our Perl usage needs 5.8, add dependency. (Closes: #252078) * Rename conflicting logcheck-sendmail rule in logcheck-sendmail_tmp Sendmail ships aboves rule. (Closes: #252661, #252556) todd: * add MAILTO=root to logcheck.cron.d (Closes: #252597) Files: b4d649271722f1adaba3eae3b961bcb4 670 admin optional logcheck_1.2.22.dsc cce8e3065b2037b4fdc21af925488117 72703 admin optional logcheck_1.2.22.tar.gz 15e4a28c47997a531f2c6c8fbc3e1fee 36578 admin optional logcheck_1.2.22_all.deb 7ffa1c5b19d6a56da2907fbc7cf8731e 40522 admin optional logcheck-database_1.2.22_all.deb f4125c78ea56ea2b69da7128731da1cc 21352 admin optional logtail_1.2.22_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAwgxt4u3oQ3FHP2YRAiNUAKDRYE0ttlDkso7D/RmM1CW4TUMrrACfWbfi sOHqiHBgCnThHOqDehtkSVE=Sk5k -----END PGP SIGNATURE-----