This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in stime.c ???


| Hello!
| 
| Consider the following code:
| 
| guile> (mktime (car (strptime "%Y" "1999")))
| standard input:15:1: In procedure mktime in expression (mktime (car #)):
| standard input:15:1: Bad memory access (Segmentation violation)
| ABORT: (signal)
| 
| Here the cause of the error:
| guile> (car (strptime "%Y" "1999"))
| #(0 0 0 0 0 99 0 0 0 0 #f)
|                        ^^
| If replaced by #(0 0 0 0 0 99 0 0 0 0 ""), all seems fine.
| The #f value is filled by filltime() in file libguile/stime.c.

I think it's mktime that's the problem: it should be able to
handle a #f value for the timezone string.  I've committed
a fix.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]