GNU bug report logs - #7221
timestamp in cvs-quickdir on Win32 system

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Rolf Unger <rz.unger@HIDDEN>; dated Fri, 15 Oct 2010 11:31:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 15 Oct 2010 11:30:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Oct 15 07:30:48 2010
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1P6iUp-0004Wo-V4
	for submit <at> debbugs.gnu.org; Fri, 15 Oct 2010 07:30:48 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rz.unger@HIDDEN>) id 1P6iHH-0003k5-Kk
	for submit <at> debbugs.gnu.org; Fri, 15 Oct 2010 07:16:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rz.unger@HIDDEN>) id 1P6iKh-0003NT-N7
	for submit <at> debbugs.gnu.org; Fri, 15 Oct 2010 07:20:22 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
	autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([199.232.76.165]:36037)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rz.unger@HIDDEN>) id 1P6iKh-0003NO-L5
	for submit <at> debbugs.gnu.org; Fri, 15 Oct 2010 07:20:19 -0400
Received: from [140.186.70.92] (port=39058 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1P6iKf-0003mN-NO
	for bug-gnu-emacs@HIDDEN; Fri, 15 Oct 2010 07:20:19 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <rz.unger@HIDDEN>) id 1P6iFI-00022x-Ra
	for bug-gnu-emacs@HIDDEN; Fri, 15 Oct 2010 07:14:45 -0400
Received: from fmmailgate01.web.de ([217.72.192.221]:50486)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <rz.unger@HIDDEN>) id 1P6iFI-00022k-Ll
	for bug-gnu-emacs@HIDDEN; Fri, 15 Oct 2010 07:14:44 -0400
Received: from smtp08.web.de  ( [172.20.5.216])
	by fmmailgate01.web.de (Postfix) with ESMTP id 64D2916F1C3F3
	for <bug-gnu-emacs@HIDDEN>; Fri, 15 Oct 2010 13:14:42 +0200 (CEST)
Received: from [91.19.22.195] (helo=platon.wg-mit-garten.local)
	by smtp08.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.110 #24)
	id 1P6iFG-0008W7-00
	for bug-gnu-emacs@HIDDEN; Fri, 15 Oct 2010 13:14:42 +0200
Received: from rolf by platon.wg-mit-garten.local with local (Exim 4.69 #1
	(Debian)) id 1P6iFF-0005te-Kt
	for <bug-gnu-emacs@HIDDEN>; Fri, 15 Oct 2010 13:14:41 +0200
From: Rolf Unger <rz.unger@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: timestamp in cvs-quickdir on Win32 system
Message-Id: <E1P6iFF-0005te-Kt@HIDDEN>
Date: Fri, 15 Oct 2010 13:14:41 +0200
X-Sender: rz.unger@HIDDEN
X-Provags-ID: V01U2FsdGVkX18EBF/86MJZPbP2wLkZFGbEdlFSj72niVrQa84F
	dJdFZ2e8sbMC3RKi9W4xjDs0totxZZxTu+ZoTa0bF63gL9oTza hduAJD1+E=
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older,
	4)
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 15 Oct 2010 07:30:47 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/pipermail/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

I realized that the cvs-quickdir command always returned MODIFIED for the
state of the files under CVS when running this on MS Win2k. At some time
I was using cvs-quickdir on a Linux box and was suprised that the results
were correct on Linux.

I inspected this a bit closer and figured out that the problem is in the
pcvs-info.el:cvs-fileinfo-from-entries function. Comparing the file
attributes time with the timestamp from the CVS/Entries file seems to
compare two different formats.

 (setq timestamp (format-time-string "%c" mtime 'utc))

seems to be the problem. I experimented a bit with the format-time-string
and found out that the "%c" format specifier is not robust on Win32

 (insert (concat "\n" (format-time-string "%c" (current-time) t)))

gives me after:

 (setq system-time-locale nil):  15.10.2010 10:45:44

 (setq system-time-locale "C"):  10/15/10 10:44:52

The first one picks up my locale settings from the OS and is the common
german format. But only the second one is relevant for cvs-quickdir.

If I use a detailed format string "%a %b %e %H:%M:%S %Y" I get the date
string in a format that matches what is used in CVS/Entries.
I tested this on both systems Win32 (with GNU Emacs 22.3 and 23.2) and
Linux (only 22.2) ... can't say anything about Solaris, though.

For pcvs-info.el from GNU Emacs 23.2 I have

;; arch-tag: d85dde07-bdc2-400a-882f-92f398c7b0ba

at the end of the file. Can't find a cvs-version variable, though?

Rolf




Acknowledgement sent to Rolf Unger <rz.unger@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs@HIDDEN:
bug#7221; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.