From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Time zone problem in cygwin Date: Fri, 06 Feb 2009 08:24:53 +0200 Message-ID: References: <498AFBE4.2070906@cornell.edu> <498B69FC.4090607@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233932319 4594 80.91.229.12 (6 Feb 2009 14:58:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2009 14:58:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 15:59:53 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LVSBE-0000n8-2k for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 15:59:44 +0100 Original-Received: from localhost ([127.0.0.1]:54787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVS9u-0002yF-Td for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2009 09:58:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LVK92-0001hf-HE for emacs-devel@gnu.org; Fri, 06 Feb 2009 01:24:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LVK91-0001hS-Bv for emacs-devel@gnu.org; Fri, 06 Feb 2009 01:24:55 -0500 Original-Received: from [199.232.76.173] (port=33591 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LVK91-0001hP-3Y for emacs-devel@gnu.org; Fri, 06 Feb 2009 01:24:55 -0500 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:49070) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LVK90-0000Bl-Ke for emacs-devel@gnu.org; Fri, 06 Feb 2009 01:24:54 -0500 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KEM00500SFH7800@i_mtaout2.012.net.il> for emacs-devel@gnu.org; Fri, 06 Feb 2009 08:25:17 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.238.131]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KEM00EY8SI4GL50@i_mtaout2.012.net.il>; Fri, 06 Feb 2009 08:25:17 +0200 (IST) In-reply-to: <498B69FC.4090607@cornell.edu> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108815 Archived-At: > Date: Thu, 05 Feb 2009 17:36:44 -0500 > From: Ken Brown > CC: emacs-devel@gnu.org > > Breakpoint 1, synchronize_system_time_locale () at emacs.c:2429 > 2429 synchronize_locale (LC_TIME, &Vprevious_system_time_locale, > > I then repeatedly pressed 's' to step through the program, and I didn't > see anything interesting, or anything different between emacs 22.3 and > emacs 23, so finally I just pressed 'c' to continue. At this point > emacs displayed the result of the evaluation, and it gave the correct > time! I've rechecked this several times, and emacs 23 gives the right > time when it's run under gdb (with or without a breakpoint), and the > wrong time otherwise. Do you have any idea what could be going on? Sorry, I don't know enough about newlib (the standard C library used by Cygwin) to tell. Could you perhaps describe your observations, including the one that setting TZ solves the problem even outside GDB, on the Cygwin mailing list and ask the gurus there for advice or hints? A thorough description of how Cygwin handles Windows time zones would probably also help. Thank you for working on this.