strptime doesn't fill in tm_wday and tm_yday.
Peter Rosin
peda@lysator.liu.se
Sun May 15 18:49:00 GMT 2011
Den 2011-05-12 15:45 skrev Corinna Vinschen:
> 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.
Excellent, thanks!
Cheers,
Peter
More information about the Newlib
mailing list