From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Van Holder Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <87zkqqmvaz.fsf@leeloo.anubex.internal> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296556662 16112 80.91.229.12 (1 Feb 2011 10:37:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Feb 2011 10:37:42 +0000 (UTC) Cc: 7905@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 01 11:37:37 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkDc6-0008Oj-4N for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Feb 2011 11:37:34 +0100 Original-Received: from localhost ([127.0.0.1]:40423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkDc4-0004oN-Dh for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Feb 2011 05:37:32 -0500 Original-Received: from [140.186.70.92] (port=34450 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PkDbk-0004MA-1t for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2011 05:37:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PkDaF-0000Y0-9v for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2011 05:35:40 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PkDaF-0000Xw-8M for bug-gnu-emacs@gnu.org; Tue, 01 Feb 2011 05:35:39 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PkDBS-0000nE-PQ; Tue, 01 Feb 2011 05:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tim Van Holder Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Feb 2011 10:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7905 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7905-submit@debbugs.gnu.org id=B7905.12965549822996 (code B ref 7905); Tue, 01 Feb 2011 10:10:02 +0000 Original-Received: (at 7905) by debbugs.gnu.org; 1 Feb 2011 10:09:42 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PkDB7-0000mG-UW for submit@debbugs.gnu.org; Tue, 01 Feb 2011 05:09:42 -0500 Original-Received: from mail-ww0-f46.google.com ([74.125.82.46]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PkDB5-0000lt-DU for 7905@debbugs.gnu.org; Tue, 01 Feb 2011 05:09:39 -0500 Original-Received: by wwj40 with SMTP id 40so7075043wwj.15 for <7905@debbugs.gnu.org>; Tue, 01 Feb 2011 02:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=q+Vg+C71WCTMm4orNkKj95+Zo1NnZm1/pEJIWMwiTTM=; b=G0NyLRABSxVmIP5Jv+cie67P+JmSHkYbQhdLlRxPCpZfIrA4iRNNqL2LFD7rRGno7m 6B8eIhDxt8PJW9F3/hzXNsfLr4/vO4i4fxG4rzGfBzzgH6n/hKqSa//LeLgR4RZGvw/G 1IqXee7BeHnUAA+uKCxVbcNdoKoa8V6lHV5Dg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=qFodb7TJrJ0vt1UvB20VIyN8R9stBNH5c73UnAwTvs4zh5gTgnSyWG48h48Aiq2BXK zn010f8vap8EWXLPXI4pme0eZN7SYZANaLRcCbLR1FIXbYLZnMy0hczhaiFhJboEhwLs nSebeTaHoNTghjWmEzjUQsA0ZEC6tBk9RwcRk= Original-Received: by 10.216.160.84 with SMTP id t62mr6783567wek.69.1296555481182; Tue, 01 Feb 2011 02:18:01 -0800 (PST) Original-Received: by 10.216.181.203 with HTTP; Tue, 1 Feb 2011 02:18:01 -0800 (PST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 01 Feb 2011 05:10:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:43808 Archived-At: On 31 January 2011 15:10, Andreas Schwab wrote: > Tim Van Holder writes: > >> Checking the behaviour of (encode-time) I see that >> =C2=A0 (encode-time 16 18 15 11 1 2011 2 nil 3600) >> =C2=A0 (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) =3D=3D 0)) tzstring =3D "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).