This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: strptime doesn't fill in tm_wday and tm_yday.
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Thu, 12 May 2011 15:45:09 +0200
- Subject: Re: strptime doesn't fill in tm_wday and tm_yday.
- References: <4DCB9513.2030505@lysator.liu.se>
- Reply-to: newlib at sourceware dot org
On May 12 10:06, Peter Rosin wrote:
> Hi!
>
> Here's a patch for the problems described in [1] and for some
> other variations on that theme, that I was nearly finished with
> when I realized that Cygwin had its own strptime.
>
> I used the below test program.
>
> Cheers,
> Peter
>
> [1] http://cygwin.com/ml/cygwin/2011-05/msg00159.html
> [...]
> * libc/time/strptime.c (strptime): Fill in tm_yday when
> all of tm_year, tm_mon and tm_mday are updated. Fill in
> tm_mon, tm_mday and tm_wday when both of tm_year and tm_yday
> are updated.
Thanks, applied. FYI, I also applied an equivalent patch to Cygwin's
strptime.
Corinna
--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat