strptime doesn't fill in tm_wday and tm_yday.

Corinna Vinschen
Fri May 13 05:11:00 GMT 2011

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]
> [...]
> 	* 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


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the Newlib mailing list