[Pkg-shadow-devel] patch for upstream - s/syslog/SYSLOG/

Nicolas François nicolas.francois@centraliens.net
Wed, 29 Jun 2005 22:27:13 +0200


Hello Tomasz,

On Wed, Jun 29, 2005 at 06:46:51AM +0200, Martin Quinson wrote:
> On Wed, Jun 29, 2005 at 12:30:50AM +0000, Nicolas FRANCOIS wrote:
> > Author: nekral-guest
> > Date: 2005-06-29 00:30:50 +0000 (Wed, 29 Jun 2005)
> > New Revision: 313
> > 
> > Modified:
> >    trunk/debian/changelog
> >    trunk/debian/patches/008_login_more_LOG_UNKFAIL_ENAB
> > Log:
> > Do not localize syslog messages.
> 
> This seems important to me. The day I have a japaneese visitor, I still=
 want
> to understand my machine logs. 

I've also seen that some messages were directly sent to syslog by calling
syslog. There is a SYSLOG macro which saves the locale, sets the locale to
C, sends the message and restores the locale. This permits to avoid having
localized time (like "Aoû 01 xx:xx:xx").

Tomasz, a patch for your CVS is attached.

Note for Debian: I did not added a patch for this issue. We can probably
wait the merge.

> And, more generally, I see a gettext flaw here. We need some SYS_LC_?? =
and
> SYS_LANG variables to that extend and specify which language the system=
 should
> speak. But until it gets implemented (and I doubt seing this implemente=
d one
> day), the system must use the C locale when speaking to root from a use=
r.

A system could differentiate the locale set in /etc/environment (or
anywhere else) from the locale set by the user. It could be interresting,
but I don't see it coming soon.
BTW, the SYSLOG macro will be perfect to solve this issue.

> Maybe you guys could speak about this in the debconf presentations? No =
idea.
               ^
This seems to be a singular plural. However, I would like to hear about
it.

Kind regards,
-- 
Nekral