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#22302: 25.1.50; time-stamp ignores time-stamp-time-zone Date: Tue, 12 Jan 2016 12:19:10 -0800 Organization: UCLA Computer Science Department Message-ID: <56955FBE.70806@cs.ucla.edu> References: <3tziwb4dgz.fsf@fencepost.gnu.org> <56953489.20700@cs.ucla.edu> <2hd1t63d2d.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1452630026 30086 80.91.229.3 (12 Jan 2016 20:20:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Jan 2016 20:20:26 +0000 (UTC) Cc: 22302-done@debbugs.gnu.org, Harald Hanche-Olsen To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 12 21:20:11 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 1aJ5QJ-0001V1-9w for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jan 2016 21:20:11 +0100 Original-Received: from localhost ([::1]:34004 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ5QI-00057E-FS for geb-bug-gnu-emacs@m.gmane.org; Tue, 12 Jan 2016 15:20:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ5QE-00056f-ML for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2016 15:20:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aJ5QA-00082R-Kq for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2016 15:20:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aJ5QA-000824-HM for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2016 15:20:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aJ5QA-00032y-BC for bug-gnu-emacs@gnu.org; Tue, 12 Jan 2016 15:20:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Jan 2016 20:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22302 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22302-done@debbugs.gnu.org id=D22302.145262996011653 (code D ref 22302); Tue, 12 Jan 2016 20:20:02 +0000 Original-Received: (at 22302-done) by debbugs.gnu.org; 12 Jan 2016 20:19:20 +0000 Original-Received: from localhost ([127.0.0.1]:47567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJ5PT-00031t-N5 for submit@debbugs.gnu.org; Tue, 12 Jan 2016 15:19:19 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55577) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aJ5PS-00031h-LE for 22302-done@debbugs.gnu.org; Tue, 12 Jan 2016 15:19:19 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id E1C3F1601E7; Tue, 12 Jan 2016 12:19:11 -0800 (PST) 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 LzVphKx1FOqM; Tue, 12 Jan 2016 12:19:11 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 38C5C1606D6; Tue, 12 Jan 2016 12:19:11 -0800 (PST) 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 CP1DcqUCQGuP; Tue, 12 Jan 2016 12:19:11 -0800 (PST) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 1EFCB1601E7; Tue, 12 Jan 2016 12:19:11 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 In-Reply-To: <2hd1t63d2d.fsf@fencepost.gnu.org> 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111561 Archived-At: On 01/12/2016 09:47 AM, Glenn Morris wrote: > Please make it so that perfectly reasonable user-input can't crash Emacs. Sorry, I take it back, in rereading the spec POSIX says merely that the behavior is unspecified when TZ="UTC", which I understand to mean that localtime_r should not crash so we don't need to worry about that in Emacs. However, the user might not get Universal Time, so "UTC0" is still safer. This is not an issue for operating systems like GNU/Linux, FreeBSD, OS X, and Solaris, where "UTC" means the same thing as "UTC0", because there's a file with a name like /usr/share/zoneinfo/UTC that does the right thing. I don't know what MS-Windows does with TZ="UTC" but I expect it works OK there too, otherwise we would have gotten bug reports before now (as this issue would come up even in older Emacs versions). I am mostly worried about obscure operating systems like HP-UX that do not use the tz database and which are not much tested by GNU Emacs developers.