[imp] Language and logging
Jan Schneider
jan at horde.org
Mon Jun 23 03:08:47 PDT 2003
Zitat von Jon Parise <jon at horde.org>:
> On Thu, Jun 19, 2003 at 01:29:14PM +0200, Jan Schneider wrote:
>
> > Zitat von Son Truong <svt at st-andrews.ac.uk>:
> >
> > > I am using Horde 2.2.1 with IMP 3.2.1 and I am still having problems
> with
> > > character translations for the horde.log file.
> > >
> > > If I log in using (for example) Greek as my language, the log file
> will
> > > show:
> > > Éïýí 19 09:58:51 HORDE [notice] [imp] Login success for ...
> > >
> > > This happens for Russian KOI8-R also, but I assume it doesn't
> work/work
> > > for other languages (I haven't fully tested as I am stuck in the
> middle
> > > of
> > > June). [For Russian KOI8-R: éÀÎ 19 09:53:36 HORDE ... ]
> > >
> > > Is this still a bug, or do I need to turn on 'log in ASCII' or
> something?
> >
> > This is different from what has been fixed already. The problem is,
> that the
> > Log class uses strftime() to output the log time. This function depends
> on
> > the current set locale.
> >
> > We might be able to fix this by switching the locale to 'C' before
> logging a
> > message and restore the original locale after that. But this is perhaps
> > better fixed in the Log class. Jon?
>
> That's debatable. There are probably people out there who would
> expect the Log packae to output dates using their system's language.
> Assuming English is probably not the correct solution for Log.
>
> I think this problem would be better fixed in Horde using the method
> you suggest above.
Alright, this is fixed now in CVS.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the imp
mailing list