Looking at the source for a strftime, I see only two possible problems:
1. The format passed to sprintf is wrong, or
2. the case 'd' branch could be missing the continue, so that case 'e'
runs, and replaces the result of 'd':
case 'd':
pt = _conv(t->tm_mday, "%02d", pt, ptlim);
continue;
case 'e':
pt = _conv(t->tm_mday, "%2d", pt, ptlim);
continue;
Note that _conv is simply:
static char *_conv(const int n, const char *format, char *pt, const char *ptlim)
{
char buf[32];
sprintf(buf, format, n);
return _add(buf, pt, ptlim);
}
Since other formats rely on %d, you might also look at the results of
formatting %x, %D and %F. But you would have to edit httptime.c with a
new format string:
strftime(buf, 40, "%x", tmPtr);
tom jackson
On Tue, 2009-05-12 at 18:33 +0400, Alexey Pechnikov wrote:
> Hello!
>
> On Tuesday 12 May 2009 17:29:38 Gustaf Neumann wrote:
> > Mr Spock would say: fascinating.
> >
> > We know at least, that the environment is indeed
> > not the problem. Can you check, whether both programs
> > use the same strftime function?
> >
> > such as:
> >
> > $ nm time-format| fgrep strftime
> > U strftime@@GLIBC_2.2.5
> >
> > $ nm /usr/local/src/aolserver-4.5.1/nsd/libnsd.so | fgrep strf
> > U strftime@@GLIBC_2.2.5
> >
>
> I didn't build AOL with debugging symbols.
>
> Best regards, Alexey Pechnikov.
> http://pechnikov.tel/
>
>
> --
> AOLserver - http://www.aolserver.com/
>
> To Remove yourself from this list, simply send an email to
> <[email protected]> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
> field of your email blank.
>
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to
<[email protected]> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.