[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#642955: general: strptime pars not week number



reassign 642955 libc6
thanks

Martin89, le Mon 26 Sep 2011 00:07:13 +0200, a écrit :
> strptime pars 2001 and week number 38 use formatstring "%Y %W"
> strptime return 0 day on year 2001

What do you expect it should return?

See manual:

“this function does not initialize tm but only stores the values
specified.”

So since you do not provide a precise day, strptime does not store a
day. %W is thus probably quite useless indeed, but I don't think it is
fixable with the design of glibc.

Samuel



Reply to: