From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.help Subject: Re: Timezone change in US Date: Wed, 14 Mar 2007 07:42:14 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1173872711 2951 80.91.229.12 (14 Mar 2007 11:45:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2007 11:45:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 12:45:04 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HRRuf-0005z7-Nt for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2007 12:45:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRRvY-00025A-0F for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2007 06:45:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HRRvK-00024q-2w for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 07:45:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HRRvI-00024d-6N for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 07:45:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRRvH-00024a-Vp for help-gnu-emacs@gnu.org; Wed, 14 Mar 2007 06:45:40 -0500 Original-Received: from atl.uu.jhcloos.net ([207.210.96.115]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HRRuM-0006p3-BK; Wed, 14 Mar 2007 07:44:42 -0400 Original-Received: by atl.uu.jhcloos.net (Postfix, from userid 10) id 20888BB48D; Wed, 14 Mar 2007 11:44:41 +0000 (UTC) Original-Received: by lugabout.jhcloos.org (Postfix, from userid 500) id 0976E38FAF1; Wed, 14 Mar 2007 11:42:38 +0000 (UTC) In-Reply-To: (Eli Zaretskii's message of "Tue\, 13 Mar 2007 23\:12\:49 +0200") Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMnRFWHRUaXRsZQAvbWF4dG9y L2Nsb29zL2luY29taW5nLzIwMDQvMDIvUFdHL0pIQzE2LnBuZyJMlEwAAAAadEVYdFNvZnR3YXJl AEdOT01FIEljb24gRWRpdG9ynioKbAAAAHFJREFUeJzFk8EKwCAMQ1/ED9cvzw6iuM0N9WIvDTWE 1KjAxmKnLBEBjLcEIBCeI2nccy5YKrjxwbbvAvZ37zlo4GB9iRMC/cq/AppItwmMyJ5I98wd9G7P xxgrSKlYS2lMrOcV13o95aVSKA7E5ndGXG+IIzcl4BNfAAAAAElFTkSuQmCC Copyright: Copyright 2007 James Cloos X-Hashcash: 1:23:070314:help-gnu-emacs@gnu.org::AjkWMsCEUNzxJZiO:0000000000000000000000000000000000000004OEP X-Hashcash: 1:23:070314:eliz@gnu.org::b8o+vFqP1fTZ2wga:00000qoiF Original-Lines: 67 User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41955 Archived-At: >>>>> "Eli" =3D=3D Eli Zaretskii writes: >> From: James Cloos >> Copyright: Copyright 2007 James Cloos >> Date: Tue, 13 Mar 2007 12:48:24 -0400 >> Cc: help-gnu-emacs@gnu.org >>=20 >>=20 >> Probably a stupid question, but what happens if you set your TZ >> variable to just 'EST5EDT'? Or 'EST5EDT4,M3.2.0/2:00,M11.1.0/2:00'? >>=20 >> 02:00 is the default for the time string, so this should be the same >> as what you had: 'EST5EDT4,M3.2.0,M11.1.0'. Does that work? >>=20 >> The 4 after EDT is also superfluous. So each of these may be worth >> a try: >>=20 >> EST5EDT,M3.2.0/2,M11.1.0/2 >> EST5EDT,M3.2.0/2:00,M11.1.0/2:00 >> EST5EDT,M3.2.0,M11.1.0 Eli> I don't think Windows time routines support the above syntax. Eli> See: [...] I mis-remembered the details of an earlier discussion about the TZ variable and win32. However, the fact that his tcsh shows the correct data with the full POSIX TZ syntax suggests that at least mingw32's localtime(3) may grok said syntax. (A quick check of tcsh's src shows that it directly calls localtime(3), rather than using an external app, to put the time in its prompt.) Eli> Maybe the problem is precisely that tcsh sets TZ to this form, which Eli> confuses Emacs on Windows. In that case, running Emacs from without Eli> tcsh should solve the problem. That possibility is essentially why I suggested trying EST5EDT first. Eli> Note that this Posix syntax of TZ, and the zoneinfo database, are al= so Eli> not supported by the Windows time routines. >> So this is a win32 or mingw32 specific bug. Eli> Perhaps it is a w32 specific bug, but then why does it work for me? I did jump to that conclusion based on the fact that tcsh was able to get the correct offset and the presumption that it was also compiled by way of mingw32. I see in its src, however, that tcsh has native support for compiling in VisualC++, so that is likely a false presumption= . Nonetheless, obviously tcsh's call to localtime(3) works whereas emacs' attempt to get more detail is failing. Even though I do not use win I am very intrigued by this=B9 and am interested in discovering what is going wrong. One important issue is that, if win32 is simply ignoring everything after "EDT" in his TZ, and if his install has not been updated to reflect the new DST start/stop dates, he is seeing exactly what one would expect: EST rather than EDT. Which does make it odd that everything else (native or not) gets it right.... -JimC 1] Yes, I do in fact read time-nuts@febo.com :-/ --=20 James Cloos OpenPGP: 1024D/ED7DAEA6