This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: bug in stime.c ???
- To: Bernard.Urban@meteo.fr
- Subject: Re: bug in stime.c ???
- From: Gary Houston <ghouston@easynet.co.uk>
- Date: 8 Sep 1999 18:42:25 -0000
- CC: guile@sourceware.cygnus.com
- References: <9909070820.AA18608@min.meteo.fr>
| 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.