You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Marc Slemko <ma...@hyperreal.org> on 1997/07/07 04:02:22 UTC

Re: mod_log-any/679: mod_log_config logs wrong month names in german/english

Synopsis: mod_log_config logs wrong month names in german/english

State-Changed-From-To: analyzed-closed
State-Changed-By: marc
State-Changed-When: Sun Jul  6 19:02:21 PDT 1997
State-Changed-Why:
As Dean says, is related to PHP changing the locale.
Apache perhaps should do something about the locale itself,
but it is not acceptable to reset it all the time in case
some other module changed it because of the performance
implications.


Re: mod_log-any/679: mod_log_config logs wrong month names in german/english

Posted by Andreas Jung <aj...@sz-sb.de>.
On Sun, 6 Jul 1997, Marc Slemko wrote:

> Synopsis: mod_log_config logs wrong month names in german/english
> 
> State-Changed-From-To: analyzed-closed
> State-Changed-By: marc
> State-Changed-When: Sun Jul  6 19:02:21 PDT 1997
> State-Changed-Why:
> As Dean says, is related to PHP changing the locale.
> Apache perhaps should do something about the locale itself,
> but it is not acceptable to reset it all the time in case
> some other module changed it because of the performance
> implications.

Why don't you read the current month from "struct tm" by number and
take the month abrevation from a constant field containing the month names
?

Cheers,
Andreas

                                _\\|//_
                               (' O-O ')
------------------------------ooO-(_)-Ooo--------------------------------------
  Andreas Jung, Saarbrücker Zeitung, Gutenbergstr. 11-23, D-66117 Saarbrücken
  Phone: +49-(0)681-502-1528   E-Mail: ajung@sz-sb.de (PGP key available)
  SZ-Newsline: http://www.sz-sb.de/, Saarland-Online: http://www.saar-ol.de/ 
-------------------------------------------------------------------------------