From 03b79aa32a8d144d1361adce0ff57da2a55ce20f Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Wed, 3 Sep 2003 00:01:17 +0000 Subject: [PATCH] (scm_strptime): Add comment about glibc strptime %s and current timezone requiring SCM_DEFER_INTS. --- libguile/stime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libguile/stime.c b/libguile/stime.c index 08276f9f4..1d9265e96 100644 --- a/libguile/stime.c +++ b/libguile/stime.c @@ -647,6 +647,9 @@ SCM_DEFINE (scm_strptime, "strptime", 2, 0, 0, tm_init (tm_yday); #undef tm_init + /* GNU glibc strptime() "%s" is affected by the current timezone, since it + reads a UTC time_t value and converts with localtime_r() to set the tm + fields, hence the use of SCM_DEFER_INTS. */ t.tm_isdst = -1; SCM_DEFER_INTS; if ((rest = strptime (str, fmt, &t)) == NULL)