According to J. op den Brouw: > On Wed, 26 Sep 2001, Gilles Detillieux wrote: > > > OK, I'm pretty sure the bundled timegm() function is solid, so let's go > > with the hunch than strptime() is failing. I'd still like to know how > > it's failing. Using the LOOSE_* formats as in the original source, could > > you uncomment the ViewStructTM() call on line 100 in HtDateTime::SetFTime() > > in htlib/HtDateTime.cc, and add a "#define TEST_HTDATETIME" somewhere > > above this to enable the test code in this module? This should show the > > intermediate values in the tm structure after strptime(), and maybe we'll > > see where/why it's failing. > > I included the output of htdig -vvvvvvvvvv with TEST_HTDATETIME on.
OK, I'm pretty convinced that your strptime() function is buggy. How about trying to manually undefine HAVE_STRPTIME and HAVE_STRPTIME_DECL in include/htconfig.h, and recompiling htlib/HtDateTime.cc. Let me know if this fixes the problem. If it does, we should try to come up with a ./configure test that makes sure strptime() allows the LOOSE_* formats before we use this function. -- Gilles R. Detillieux E-mail: <[EMAIL PROTECTED]> 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 _______________________________________________ htdig-dev mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/htdig-dev
