Your message dated Wed, 26 Jan 2005 21:39:38 +0900
with message-id <[EMAIL PROTECTED]>
and subject line glibc: syslog entry dates depend on locale
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; 12 Mar 2004 17:36:50 +0000
>From [EMAIL PROTECTED] Fri Mar 12 09:36:50 2004
Return-path: <[EMAIL PROTECTED]>
Received: from mxintern.kundenserver.de (mxintern.schlund.de) [212.227.126.201] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1B1qaY-0005kc-00; Fri, 12 Mar 2004 09:36:50 -0800
Received: from [172.17.36.9] (helo=manwe.use.schlund.de)
        by mxintern.kundenserver.de with esmtp (Exim 3.35 #1)
        id 1B1qaW-0000pp-00
        for [EMAIL PROTECTED]; Fri, 12 Mar 2004 18:36:48 +0100
Received: from absurd by manwe.use.schlund.de with local (Exim 3.36 #1 (Debian))
        id 1B1qaW-0004kI-00
        for <[EMAIL PROTECTED]>; Fri, 12 Mar 2004 18:36:48 +0100
From: Stephan A Suerken <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: sysklogd: Log format and encoding depends on caller's locale 
environment
X-Debbugs-CC: Stephan A Suerken <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: text/plain; charset=iso-8859-9
Content-Transfer-Encoding: 8bit
Message-Id: <[EMAIL PROTECTED]>
Sender: Absurd Melkor <[EMAIL PROTECTED]>
Date: Fri, 12 Mar 2004 18:36:48 +0100
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_12 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-10.0 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        X_DEBBUGS_CC autolearn=no version=2.60-bugs.debian.org_2004_03_12
X-Spam-Level: 

Package: sysklogd
Version: 1.4.1-13
Severity: normal

Hi,

doing this
--
$ absurd? export LANG=<LOCALE-ID>
$ absurd? logger -p daemon.notice "Huhu"
--

results in the following log entries in /var/log/daemon.log:

LOCALE-ID             Log entry

C                    "Mar 12 17:14:16 manwe absurd: Huha"
de_DE (ISO-8859-1)   "M�r 12 17:16:43 manwe absurd: Huhe"
de_DE.UTF-8          "Mar 12 17:18:02 manwe Mär 12 17:18:02 absurd: Huhi"


Imho, this is buggy in two ways:

a) The callers environment should not influence the encoding used in
the log file - i.e., at least for automatically added parts like
dates. Allowing different text encodings in one file makes it virtually
impossible to interpret it.
b) (At least) for UTF-8, the format actually seems to change in a
suprising manner ;).

For a), the solution should be to set a fixed locale before calling
any locale-aware (date) routines. b) might be a c-string side effect
from a date conversion that results in a string with at least one
2-byte character (i.e., the bug does not occur in February/Februar ;),
so this too might be fixed with the fix for a).

MfG,

Stephan

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.22-custom-adkm-manwe
Locale: LANG=C, [EMAIL PROTECTED]

Versions of packages sysklogd depends on:
ii  klogd [linux-kernel-log-dae 1.4.1-13     Kernel Logging Daemon
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an

-- no debconf information

---------------------------------------
Received: (at 237674-done) by bugs.debian.org; 26 Jan 2005 12:39:40 +0000
>From [EMAIL PROTECTED] Wed Jan 26 04:39:40 2005
Return-path: <[EMAIL PROTECTED]>
Received: from omega.webmasters.gr.jp (webmasters.gr.jp) [218.44.239.78] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CtmSS-0000Rc-00; Wed, 26 Jan 2005 04:39:40 -0800
Received: from omega.webmasters.gr.jp (localhost [127.0.0.1])
        by webmasters.gr.jp (Postfix) with ESMTP id A3ACBDEB3B
        for <[EMAIL PROTECTED]>; Wed, 26 Jan 2005 21:39:38 +0900 (JST)
Date: Wed, 26 Jan 2005 21:39:38 +0900
Message-ID: <[EMAIL PROTECTED]>
From: GOTO Masanori <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: glibc: syslog entry dates depend on locale
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

> the bug is actually in glibc -- it's also known
> 
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=172
> 
> and there is a patch (it is not incorporated into at least
> 2.3.2.ds1-13 though).

This bug was fixed in 2.3.2.ds1.  I've closed this bug.

Regards,
-- gotom


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to