From: Gilles D. <gr...@sc...> - 2001-10-17 21:18:39
|
According to Sean Downey: > bobb@dev (/usr/home/bobb/htdig-3.2.0b4-092301) $ uname -a > FreeBSD dev.internal 4.2-STABLE FreeBSD 4.2-STABLE #0: Wed Mar 7 17:35:19 > GMT 2001 > bo...@de...ernal:/usr/obj/mnt/usr/src/sys/DAEDALUS i386 > > Hardware is intel PIII 500MHz, L440Gx+ Motherboard, 256MB Ram. > > in htconfig.h, the settings are: > > HAVE_STRPTIME 1 > HAVE_TIMEGM 1 Thanks. That's now two very different systems (FreeBSD and HP-UX) that both have the same or similar problem with strptime() and the LOOSE_RFC* formats. I don't recall any problems quite like this in 3.1.x, but I think those usually (or always) used a different, bundled strptime() function. I think this HtDateTime class in 3.2 is going to need a serious makeover soon. Personally, I think the safest approach would be to do away with strptime(), and parse the header date strings directly with our own code. -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930 |