From: "Andreas Vögele" <voegelas@gmx.net>
Subject: Patch for scm_strftime() in stime.c
Date: Sun, 2 May 2004 16:45:42 +0200 [thread overview]
Message-ID: <633F02B4-9C47-11D8-BCCF-000D93673682@gmx.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 315 bytes --]
Hi,
on HP-UX, test-suite/time.test fails. The problem is that there may be
a mismatch between the time zone name and the daylight savings time
setting. The patch changes scm_strftime() so that mktime() is called to
fix tm_isdst. I don't know if this problem is HP-specific but I decided
to use #ifdef __hpux.
[-- Attachment #2: stime.c.diff --]
[-- Type: application/octet-stream, Size: 583 bytes --]
Index: stime.c
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/libguile/stime.c,v
retrieving revision 1.88
diff -u -r1.88 stime.c
--- stime.c 27 Apr 2004 22:43:28 -0000 1.88
+++ stime.c 2 May 2004 14:36:59 -0000
@@ -633,6 +633,12 @@
have_zone = 1;
SCM_DEFER_INTS;
oldenv = setzone (zone, SCM_ARG2, FUNC_NAME);
+
+ /* On HP-UX, the conversion specifier %Z may produce an empty time
+ zone abbreviation unless mktime() is called to fix tm_isdst. */
+# if defined(__hpux)
+ mktime (&t);
+# endif
}
#endif
[-- Attachment #3: Type: text/plain, Size: 136 bytes --]
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
next reply other threads:[~2004-05-02 14:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-02 14:45 Andreas Vögele [this message]
2004-05-02 19:46 ` Patch for scm_strftime() in stime.c Andreas Vögele
2004-05-02 23:02 ` Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=633F02B4-9C47-11D8-BCCF-000D93673682@gmx.net \
--to=voegelas@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).