I noticed guile mktime includes errno in its error report, but I don't think the C mktime sets errno.
For instance in guile 1.6.3 built on a recent i386 debian with glibc 2.3.1, a little foo.scm (readdir (opendir ".")) (define tm (gmtime (current-time))) (set-tm:year tm -123) (mktime tm "GMT") run with "guile -s foo.scm" gives the rather curious ERROR: In procedure mktime: ERROR: Success Who'd have thought success was an error :-). Of course readdir has set errno to 0 as part of its normal operation, and mktime has returned -1 for a bogus tm_year, but not set errno. I'm not actually sure what the standards say about mktime and errno, but a draft of C99 I've seen doesn't mention it setting errno, and certainly in glibc 2.3.1 it doesn't seem to get set. _______________________________________________ Bug-guile mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-guile