This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strptime doesn't fill in tm_wday and tm_yday.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]