From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 085c7f6 2/2: Test format-time-string with zone arg Date: Mon, 01 May 2017 22:36:51 +0300 Message-ID: <83shkoid2k.fsf@gnu.org> References: <20170427222412.28742.14016@vcs0.savannah.gnu.org> <20170427222413.8FBA722040@vcs0.savannah.gnu.org> <07e00044-4ce1-bba8-2fe5-4e7eb7fb27a6@cornell.edu> <269c5353-d07b-5cf0-4009-3d817351c470@cs.ucla.edu> <83h915ja41.fsf@gnu.org> <175dace6-c544-a0ac-2e96-b378b3c6f49d@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1493667467 4990 195.159.176.226 (1 May 2017 19:37:47 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 1 May 2017 19:37:47 +0000 (UTC) Cc: kbrown@cornell.edu, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 01 21:37:43 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d5H8c-000185-El for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 21:37:38 +0200 Original-Received: from localhost ([::1]:55547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5H8i-0002m3-8e for ged-emacs-devel@m.gmane.org; Mon, 01 May 2017 15:37:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41304) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5H84-0002jn-JE for emacs-devel@gnu.org; Mon, 01 May 2017 15:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d5H80-00073g-HB for emacs-devel@gnu.org; Mon, 01 May 2017 15:37:04 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:45918) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d5H80-00073a-E8; Mon, 01 May 2017 15:37:00 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4875 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1d5H7z-0007Gt-LN; Mon, 01 May 2017 15:37:00 -0400 In-reply-to: <175dace6-c544-a0ac-2e96-b378b3c6f49d@cs.ucla.edu> (message from Paul Eggert on Mon, 1 May 2017 10:49:17 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214502 Archived-At: > Cc: kbrown@cornell.edu, emacs-devel@gnu.org > From: Paul Eggert > Date: Mon, 1 May 2017 10:49:17 -0700 > > On 05/01/2017 12:43 AM, Eli Zaretskii wrote: > > I've found 2 issues with this test in the MinGW build on MS-Windows. > > Yes, clearly MS-Windows is buggy in this area, but only time nerds like > me care about this sort of thing so I installed the attached, which > should stop testing the buggy timestamps in early 1970 (while avoiding > portability problems with timestamps after mid-1972). Thanks. This version still has problems in the MinGW build: . The Windows runtime supports only 3-letter TZ abbreviations, so things like NZST and AEST confuse it. (It doesn't care about the letters, it just needs to be 3 of them.) . The Windows runtime doesn't support Posix DST transition rules in the TZ setting, it uses the "old USA rules" (see https://msdn.microsoft.com/en-us/library/90s5c885.aspx for the details), so "AEST-10AEDT,M10.5.0,M2.5.0/3" doesn't produce the correct result, even if AEST and AEDT are replaced with 3-letter zones. So if we want to test that DST works, the rules must be compatible with the old US rules, i.e. between the 1st Sunday of April and the last Sunday of October.