From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23600: 25.1.50; encode-time returns wrong result Date: Sun, 05 Jun 2016 05:47:27 +0300 Message-ID: <8337osuzb4.fsf@gnu.org> References: <574E9AA6.1070606@cs.ucla.edu> <83h9d9uf3d.fsf@gnu.org> <57530C98.3030508@cs.ucla.edu> <838tykvort.fsf@gnu.org> <575353C3.7090203@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465094906 11162 80.91.229.3 (5 Jun 2016 02:48:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2016 02:48:26 +0000 (UTC) Cc: kzhr@d1.dion.ne.jp, 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 04:48: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 1b9O6q-0003PR-2V for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2016 04:48:16 +0200 Original-Received: from localhost ([::1]:35038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9O6p-0005v0-2L for geb-bug-gnu-emacs@m.gmane.org; Sat, 04 Jun 2016 22:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9O6h-0005ro-Ss for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 22:48:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9O6c-0008EZ-Oa for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 22:48:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:42470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9O6c-0008EV-LB for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 22:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b9O6c-0007xb-DI for bug-gnu-emacs@gnu.org; Sat, 04 Jun 2016 22:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jun 2016 02:48:02 +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.146509483230543 (code B ref 23600); Sun, 05 Jun 2016 02:48:02 +0000 Original-Received: (at 23600) by debbugs.gnu.org; 5 Jun 2016 02:47:12 +0000 Original-Received: from localhost ([127.0.0.1]:54807 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9O5n-0007wZ-MF for submit@debbugs.gnu.org; Sat, 04 Jun 2016 22:47:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36636) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b9O5j-0007wB-DQ for 23600@debbugs.gnu.org; Sat, 04 Jun 2016 22:47:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b9O5a-00084n-CJ for 23600@debbugs.gnu.org; Sat, 04 Jun 2016 22:47:02 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48381) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b9O5a-00084j-9A; Sat, 04 Jun 2016 22:46:58 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3098 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b9O5Y-0001uh-EJ; Sat, 04 Jun 2016 22:46:56 -0400 In-reply-to: <575353C3.7090203@cs.ucla.edu> (message from Paul Eggert on Sat, 4 Jun 2016 15:18:43 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:119087 Archived-At: > Cc: kzhr@d1.dion.ne.jp, 23600@debbugs.gnu.org > From: Paul Eggert > Date: Sat, 4 Jun 2016 15:18:43 -0700 > > Eli Zaretskii wrote: > > I think it would be cleaner if we copied the string before modifying > > it. > > Other parts of Emacs modify the string in place and expect the modifications to > affect the time zone setting, so in general it won't work to copy the string, > modify the copy, and pass the copy's address to putenv. Too bad.