From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_V=F6gele?= Newsgroups: gmane.lisp.guile.bugs Subject: Patch for scm_strftime() in stime.c Date: Sun, 2 May 2004 16:45:42 +0200 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: <633F02B4-9C47-11D8-BCCF-000D93673682@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v613) Content-Type: multipart/mixed; boundary=Apple-Mail-9--24755791 X-Trace: sea.gmane.org 1083509708 1838 80.91.224.253 (2 May 2004 14:55:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 May 2004 14:55:08 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun May 02 16:55:01 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKIMu-0007Ce-00 for ; Sun, 02 May 2004 16:55:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKIMG-00061B-Q2 for guile-bugs@m.gmane.org; Sun, 02 May 2004 10:54:20 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKIL5-0004r5-Pt for bug-guile@gnu.org; Sun, 02 May 2004 10:53:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKIKS-00049O-V9 for bug-guile@gnu.org; Sun, 02 May 2004 10:53:01 -0400 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.30) id 1BKIE3-0001oo-2C for bug-guile@gnu.org; Sun, 02 May 2004 10:45:51 -0400 Original-Received: (qmail 15200 invoked by uid 65534); 2 May 2004 14:45:44 -0000 Original-Received: from pD9E61F7C.dip.t-dialin.net (EHLO [192.168.1.15]) (217.230.31.124) by mail.gmx.net (mp025) with SMTP; 02 May 2004 16:45:44 +0200 X-Authenticated: #14729429 Original-To: bug-guile@gnu.org X-Mailer: Apple Mail (2.613) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:1385 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:1385 --Apple-Mail-9--24755791 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed 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. --Apple-Mail-9--24755791 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="stime.c.diff" Content-Disposition: attachment; filename=stime.c.diff 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 --Apple-Mail-9--24755791 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile --Apple-Mail-9--24755791--