From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Roche Newsgroups: gmane.os.cygwin,gmane.emacs.help Subject: cygwin 1.7/emacs 23.1 time bug/workaround status? Date: Mon, 28 Dec 2009 12:17:00 -0500 (EST) Message-ID: <20091228171700.CC4B1141D1C0D@cedar.isis.unc.edu> Reply-To: cygwin@cygwin.com, help-gnu-emacs@gnu.org, Tom Roche NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1262020656 32711 80.91.229.12 (28 Dec 2009 17:17:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Dec 2009 17:17:36 +0000 (UTC) To: help-gnu-emacs@gnu.org, cygwin@cygwin.com, Original-X-From: cygwin-return-157986-goc-cygwin=m.gmane.org@cygwin.com Mon Dec 28 18:17:28 2009 Return-path: Envelope-to: goc-cygwin@lo.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by lo.gmane.org with smtp (Exim 4.50) id 1NPJDj-0007zl-Qr for goc-cygwin@lo.gmane.org; Mon, 28 Dec 2009 18:17:28 +0100 Original-Received: (qmail 28498 invoked by alias); 28 Dec 2009 17:17:23 -0000 Original-Received: (qmail 28487 invoked by uid 22791); 28 Dec 2009 17:17:21 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Original-Received: from cedar.isis.unc.edu (HELO cedar.isis.unc.edu) (152.2.3.72) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Dec 2009 17:17:13 +0000 Original-Received: by cedar.isis.unc.edu (Postfix, from userid 155088) id CC4B1141D1C0D; Mon, 28 Dec 2009 12:17:00 -0500 (EST) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Xref: news.gmane.org gmane.os.cygwin:114074 gmane.emacs.help:70910 Archived-At: summary: A cygwin-1.7/emacs-23.1 time bug and its workaround is known, but is it being tracked? details: Tom Roche Sun, 27 Dec 2009 21:51:58 -0500 (EST) >> After updating cygwin [from 1.5.x] to 1.7.1-1, Which has been otherwise delightful! >> which updated my emacs to 23.1, I now see >> (current-time-string) >> "Mon Dec 28 01:21:44 2009" >> (current-time-zone) >> (-3600 "GMT") >> when bash says >> $ date >> Sun Dec 27 21:21:44 EST 2009 Eli Zaretskii Mon, 28 Dec 2009 06:09:32 +0200 > Try asking on the Cygwin list first. Or first try googling better :-( This bug was noted 10 months ago: http://www.cygwin.com/ml/cygwin/2009-02/msg00148.html >>> I've built emacs 23 under both cygwin 1.5 and 1.7, and it runs >>> fine for me except for a glitch involving time zones: Emacs gets >>> the local time zone wrong by 4 hours. I've reported this to the >>> emacs-devel list [1], and the developer who responded asked me to >>> try to get some advice on this list. Here are two facts that might >>> provide clues: >>> 1. The problem disappears if I set the environment variable TZ >>> before starting emacs. E.g. * in winxp System>Advanced>Environment Variables>System variables set TZ= America/New_York This worked for me. * in cygwin bash, `export TZ=America/New_York` (I haven't tested) >>> 2. The problem disappears if I run emacs under gdb. [This, of >>> course, makes debugging difficult.] >>> I would appreciate any advice or hints as to how I (and the emacs >>> developers) might track this down. Also, the developers would find >>> it useful to have a description of how cygwin handles Windows time >>> zones. Is this bug currently being tracked by anyone? On the cygwin side, I don't know where there is a queryable bug tracker. On the emacs side, I don't see it in http://debbugs.gnu.org/cgi/pkgreport.cgi?include=subject%3Acygwin;package=emacs (which I believe is the Gnu Emacs bug tracker). TIA, Tom Roche