all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Van Holder <tim.vanholder@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 7905@debbugs.gnu.org
Subject: bug#7905: 24.0.50; VC not updating file status properly anymore after commit from vc-dir
Date: Tue, 1 Feb 2011 11:18:01 +0100	[thread overview]
Message-ID: <AANLkTin0rb8292bBpgMrFnj08NR53X=Yq4Lyib0JQ2Yg@mail.gmail.com> (raw)
In-Reply-To: <m3lj21upsx.fsf@linux-m68k.org>

On 31 January 2011 15:10, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Tim Van Holder <tim.vanholder@gmail.com> writes:
>
>> Checking the behaviour of (encode-time) I see that
>>   (encode-time 16 18 15 11 1 2011 2 nil 3600)
>>   (encode-time 16 18 15 11 1 2011 2 nil 0)
>> both return the same value "(19756 26280)"
>
> You should find out why.
>
> Andreas.

I tried treating a zone of 0 the same way as a nil zone (i.e. set TZ
to UTZ0), in case it was the XXX-0:00:00 TZ setting that was not
working:

      if (EQ (zone, Qt) || (INTEGERP (zone) && XINT (zone) == 0))
	tzstring = "UTC0";

but that made no difference: encode-time completely ignores the zone
setting (whether nil, t, 0, 3600, 17, 36000, "CET", "UTC", "FOO").

In order to do the (apparent) right thing, encode-time seems to rely
on mktime() to take $TZ into account (otherwise there is no point in
saving/restoring the environment with a specific TZ value).
However, lib/mktime.c (which is in use by my emacs build) does not
seem to refer to any timezone info at all - neither $TZ nor tm_zone is
referenced; it seems to rely on localtime() to deal with that. I guess
that's not the case for my localtime() (from glibc 2.3.6).





  reply	other threads:[~2011-02-01 10:18 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-24 10:48 bug#7905: 24.0.50; VC not updating file status properly anymore after commit from vc-dir Tim Van Holder
2011-01-25  0:48 ` Glenn Morris
2011-01-25  8:00   ` Tim Van Holder
2011-01-25  9:44     ` Tim Van Holder
2011-01-25 11:30       ` Tim Van Holder
2011-01-26  4:25         ` Glenn Morris
2011-01-26  9:44           ` Tim Van Holder
2011-01-26 10:07             ` Tim Van Holder
2011-01-27  7:25               ` Glenn Morris
2011-01-27  9:51                 ` Tim Van Holder
2011-01-28 18:16                   ` Glenn Morris
2011-01-31  9:06                     ` Tim Van Holder
2011-01-31 10:31                       ` Andreas Schwab
2011-01-31 13:59                         ` Tim Van Holder
2011-01-31 14:10                           ` Andreas Schwab
2011-02-01 10:18                             ` Tim Van Holder [this message]
2011-02-01 21:45                               ` Glenn Morris
2011-02-02 11:40                                 ` Tim Van Holder

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

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

  git send-email \
    --in-reply-to='AANLkTin0rb8292bBpgMrFnj08NR53X=Yq4Lyib0JQ2Yg@mail.gmail.com' \
    --to=tim.vanholder@gmail.com \
    --cc=7905@debbugs.gnu.org \
    --cc=schwab@linux-m68k.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.