unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: 21020@debbugs.gnu.org, wgg2@member.fsf.org
Subject: bug#21020: 24.4; `display-time-world' tampers with TZ
Date: Sun, 26 Jul 2015 21:21:36 +0300	[thread overview]
Message-ID: <83io96zsnj.fsf@gnu.org> (raw)
In-Reply-To: <55B51F1A.2000100@cs.ucla.edu>

> Date: Sun, 26 Jul 2015 10:55:38 -0700
> From: Paul Eggert <eggert@cs.ucla.edu>
> CC: wgg2@member.fsf.org, 21020@debbugs.gnu.org
> 
> Eli Zaretskii wrote:
> 
> >> test/automated/icalender-tests.el exercises the new code.
> >
> > But the tests there that play with TZ are all expected failures on
> > MS-Windows, because they use Posix format of time-zone definition that
> > Windows runtime doesn't support.  So that probably means there are no
> > tests that could be used on Windows.
> 
> OK, didn't know that.  Presumably this could be addressed by adding tests for 
> MS-Windows TZ settings, if somebody has the time for this (pun intended...).

MS-Windows supports only the simplest TZ format, as in EST-5EDT, you
cannot tell it when the DST rules begin and end.  And those test
exercise precisely those begin/end rules that cannot work.

> >> Also, the MS-Windows port can't entirely skip the time module any
> >> more, as that module arranges for time.h to declare localtime_rz and
> >> friends.
> >
> > This could conflict with time.h in nt/inc/sys/, no?
> 
> I don't see why.  <sys/time.h> is a different API.  This patch affects only 
> <time.h>.
> 
> >lib/time.h seems to want to replace 'localtime', which might
> > clash with 'sys_localtime' we currently use as replacement on w32.
> 
> The replacement is conditional, and the condition should be false on w32.

Then I guess we are lucky, and nothing could possibly become broken.

Thanks.





  reply	other threads:[~2015-07-26 18:21 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-09 19:39 bug#21020: 24.4; `display-time-world' tampers with TZ William G. Gardella
2015-07-26  7:09 ` Paul Eggert
2015-07-26 14:48   ` Eli Zaretskii
2015-07-26 17:05     ` Paul Eggert
2015-07-26 17:34       ` Eli Zaretskii
2015-07-26 17:37         ` Eli Zaretskii
2015-07-26 17:55         ` Paul Eggert
2015-07-26 18:21           ` Eli Zaretskii [this message]
2015-07-26 19:48             ` Paul Eggert
2015-07-27 12:29               ` Eli Zaretskii
2015-07-27 15:02                 ` Paul Eggert
2015-07-27 15:22                   ` Eli Zaretskii
2015-07-27 15:38                     ` Eli Zaretskii
2015-07-27 17:29                 ` Eli Zaretskii
2015-07-28  1:09                   ` Paul Eggert
2015-07-28 10:37                     ` 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=83io96zsnj.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=21020@debbugs.gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=wgg2@member.fsf.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).