From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#23600: 25.1.50; encode-time returns wrong result Date: Wed, 1 Jun 2016 23:38:23 -0700 Organization: UCLA Computer Science Department Message-ID: <574FD45F.7060806@cs.ucla.edu> References: <574E9AA6.1070606@cs.ucla.edu> <86zir4e4nw.wl--xmue@d1.dion.ne.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1464849567 7050 80.91.229.3 (2 Jun 2016 06:39:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jun 2016 06:39:27 +0000 (UTC) Cc: 23600@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 02 08:39:16 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b8MHj-0006V5-Tp for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 08:39:16 +0200 Original-Received: from localhost ([::1]:45542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8MHf-0006Ww-ML for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Jun 2016 02:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8MHa-0006Wo-3A for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 02:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b8MHV-0003vh-VJ for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 02:39:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38077) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b8MHV-0003vc-Ry for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 02:39:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b8MHV-0007mK-KY for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2016 02:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2016 06:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23600 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 23600-submit@debbugs.gnu.org id=B23600.146484951229860 (code B ref 23600); Thu, 02 Jun 2016 06:39:01 +0000 Original-Received: (at 23600) by debbugs.gnu.org; 2 Jun 2016 06:38:32 +0000 Original-Received: from localhost ([127.0.0.1]:50414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8MH2-0007lY-68 for submit@debbugs.gnu.org; Thu, 02 Jun 2016 02:38:32 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55179) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b8MH0-0007lL-OD for 23600@debbugs.gnu.org; Thu, 02 Jun 2016 02:38:31 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 9C05F1613DC; Wed, 1 Jun 2016 23:38:24 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id x5zEt-l8urLO; Wed, 1 Jun 2016 23:38:24 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E7EB4161412; Wed, 1 Jun 2016 23:38:23 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IkorbCqrWPpo; Wed, 1 Jun 2016 23:38:23 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id C84BC1613DC; Wed, 1 Jun 2016 23:38:23 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 In-Reply-To: <86zir4e4nw.wl--xmue@d1.dion.ne.jp> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118970 Archived-At: Kazuhiro Ito wrote: > Thank you for the fix. The problem I showed in the bug report seems > to be resolved. Thanks, I installed the fix in master. > But there still be a problem related timezone (I > dont' know whether it is the same problem). With your patch, the > below code returns unexpected result. > > (list (progn (set-time-zone-rule 0) > (current-time-zone)) > (progn (set-time-zone-rule "JST-9") > (current-time-zone)) > (progn (set-time-zone-rule "-9") > (current-time-zone))) > > -> ((0 "ZZZ") (0 "ZZZ") (32400 "JST")) > > I want it to return '((0 "ZZZ") (32400 "JST") (32400 "JST"))'. Yes, that's the correct result and it's what I observe on Ubuntu 16.04 x8= 6-64. I=20 don't offhand see how the just-installed patch would cause the wrong answ= er for=20 the "JST-9" case, as the patch cannot make a difference unless TZ's value= starts=20 with "<". Do you see the same (wrong) behavior for "JST-9" in the emacs-25 branch? = In=20 Emacs 24.5?