unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Glenn Morris <rgm@gnu.org>
Cc: 22302-done@debbugs.gnu.org, Harald Hanche-Olsen <hanche@math.ntnu.no>
Subject: bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone
Date: Tue, 12 Jan 2016 12:19:10 -0800	[thread overview]
Message-ID: <56955FBE.70806@cs.ucla.edu> (raw)
In-Reply-To: <2hd1t63d2d.fsf@fencepost.gnu.org>

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.





  reply	other threads:[~2016-01-12 20:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-04  0:18 bug#22302: 25.1.50; time-stamp ignores time-stamp-time-zone Harald Hanche-Olsen
2016-01-12  4:40 ` Glenn Morris
2016-01-12 17:14   ` Paul Eggert
2016-01-12 17:47     ` Glenn Morris
2016-01-12 20:19       ` Paul Eggert [this message]
2016-01-12 20:51         ` Eli Zaretskii
2016-01-12 21:29           ` Paul Eggert
2016-01-13 15:47             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56955FBE.70806@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=22302-done@debbugs.gnu.org \
    --cc=hanche@math.ntnu.no \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).