This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/172] New: [PATCH] syslog date format should not be locale dependent
- From: "pere at hungry dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 May 2004 20:36:40 -0000
- Subject: [Bug libc/172] New: [PATCH] syslog date format should not be locale dependent
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
I came across this bug report in bug-glibc while searching for another
problem. The bug is still present, and as I was involved in writing
RFC 3164, I wanted to make sure the report was not lost.
From: SEKINE Tatsuo <tsekine <at> sdri.co.jp>
Subject: wrong date format in syslog
Date: Tue, 25 Feb 2003 13:37:05 +0900
Hi all.
Accroding to RFC 3164(ftp://ftp.rfc-editor.org/in-notes/rfc3164.txt),
the timestamp should be in the format of "Mmm dd hh:mm:ss" (without
the quote marks). Where "Mmm" is the English language abbreviation for
the month of the year.
But glibc-2.3.1 implements it as "%h %e %T" (in strftime() format).
In non-English locale, syslog daemon incorrectly parse those message
generated by glibc.
[...]
The first draft patch was replaced twice with improved patches. I'll
attach the latest one to this bug.
I verified that the problem still exists using strace and logger:
% LANG=C strace logger "test message" 2>&1 | grep send
send(1, "<13>May 18 22:28:19 logger: test"..., 40, 0) = 40
% LANG=no_NO strace logger "test message" 2>&1 | grep send
send(1, "<13>mai 18 22:35:28 logger: test"..., 40, 0) = 40
%
Notice how the date format changes when using LANG=no_NO. It should
not change, as this conflicts with RFC 3164.
--
Summary: [PATCH] syslog date format should not be locale
dependent
Product: glibc
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: gotom at debian dot or dot jp
ReportedBy: pere at hungry dot com
CC: glibc-bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=172
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.