From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazuhiro Ito Newsgroups: gmane.emacs.bugs Subject: bug#23600: 25.1.50; encode-time returns wrong result Date: Sun, 05 Jun 2016 20:08:22 +0900 Message-ID: <86wpm351w9.wl--xmue@d1.dion.ne.jp> References: <574E9AA6.1070606@cs.ucla.edu> <86zir4e4nw.wl--xmue@d1.dion.ne.jp> <574FD45F.7060806@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1465124968 14902 80.91.229.3 (5 Jun 2016 11:09:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2016 11:09:28 +0000 (UTC) Cc: 23600@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 05 13:09:17 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 1b9Vvg-0001oj-QA for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 13:09:17 +0200 Original-Received: from localhost ([::1]:36528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9Vvc-0006oA-Iz for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 07:09:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9VvW-0006nr-Uf for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 07:09:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9VvR-0001VN-Te for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 07:09:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9VvR-0001VH-Qj for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 07:09:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b9VvR-0006SE-KW for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2016 07:09:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kazuhiro Ito Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2016 11:09: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: moreinfo Original-Received: via spool by 23600-submit@debbugs.gnu.org id=B23600.146512491324772 (code B ref 23600); Sun, 05 Jun 2016 11:09:01 +0000 Original-Received: (at 23600) by debbugs.gnu.org; 5 Jun 2016 11:08:33 +0000 Original-Received: from localhost ([127.0.0.1]:54936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9Vuz-0006RT-IA for submit@debbugs.gnu.org; Sun, 05 Jun 2016 07:08:33 -0400 Original-Received: from mail-ae1-f4.auone-net.jp ([106.187.231.4]:34029 helo=dmta01.auone-net.jp) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9Vux-0006RI-Q9 for 23600@debbugs.gnu.org; Sun, 05 Jun 2016 07:08:32 -0400 Original-Received: from amlmta040.auone-net.jp (amlmta040-MM [10.188.22.137]) by dmta01.auone-net.jp (au one net mail) with ESMTP id 578745603B8 for <23600@debbugs.gnu.org>; Sun, 5 Jun 2016 20:08:29 +0900 (JST) Original-Received: from kzhr.d1.dion.ne.jp ([101.140.160.63]) by amlmta040.auone-net.jp id 5754082c000877ad0000364300000cd43000027ce8f8; Sun, 05 Jun 2016 20:08:28 +0900 In-Reply-To: <574FD45F.7060806@cs.ucla.edu> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1.50 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) X-MXM-DELIVERY-TYPE: 3 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:119100 Archived-At: > > Thank you for the fix. The problem I showed in the bug report seems > > to be resolved. > Thanks, I installed the fix in master. Thank you. > > 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 > x86-64. I don't offhand see how the just-installed patch would cause the > wrong answer for the "JST-9" case, as the patch cannot make a difference > unless TZ's value starts with "<". > > Do you see the same (wrong) behavior for "JST-9" in the emacs-25 branch? > In Emacs 24.5? Emacs 24.5 can treat "JST-9" correctly but not for "", emacs-25 shows the same result as trunk. (list (progn (set-time-zone-rule "-1") (current-time-zone)) (progn (set-time-zone-rule t) (current-time-zone)) (progn (set-time-zone-rule "BBB-2") (current-time-zone)) (progn (set-time-zone-rule 36000) (current-time-zone)) (progn (set-time-zone-rule "-9") (current-time-zone))) emacs-25 branch -> ((32400 "JST") (0 "GMT") (32400 "JST") (32400 "JST") (32400 "JST")) emacs-25 branch with sys_putenv patch and trunk -> ((3600 "AAA") (0 "GMT") (3600 "AAA") (36000 "ZZZ") (32400 "JST")) (list (progn (set-time-zone-rule "GMT0") (current-time-zone)) (progn (set-time-zone-rule "BBB-2") (current-time-zone)) (progn (set-time-zone-rule "-9") (current-time-zone))) 24.5 pre-built binary -> ((0 "GMT") (7200 "BBB") (3600 "T>-")) -- Kazuhiro Ito