From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rolf Unger Newsgroups: gmane.emacs.bugs Subject: bug#7221: timestamp in cvs-quickdir on Win32 system Date: Fri, 15 Oct 2010 13:14:41 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1287142949 22120 80.91.229.12 (15 Oct 2010 11:42:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Oct 2010 11:42:29 +0000 (UTC) To: 7221@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 15 13:42:28 2010 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 1P6ig6-0001ZQ-Ln for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 13:42:27 +0200 Original-Received: from localhost ([127.0.0.1]:36420 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6ig6-0003Ey-1x for geb-bug-gnu-emacs@m.gmane.org; Fri, 15 Oct 2010 07:42:26 -0400 Original-Received: from [140.186.70.92] (port=50449 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6ig0-0003E1-Pt for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:42:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6ifz-00015p-Ox for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:42:20 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6ifz-00015k-Mx for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:42:19 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P6iV4-0004X4-Gh; Fri, 15 Oct 2010 07:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rolf Unger Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 15 Oct 2010 11:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.128714224817413 (code B ref -1); Fri, 15 Oct 2010 11:31:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Oct 2010 11:30:48 +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 1P6iUp-0004Wo-V4 for submit@debbugs.gnu.org; Fri, 15 Oct 2010 07:30:48 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P6iHH-0003k5-Kk for submit@debbugs.gnu.org; Fri, 15 Oct 2010 07:16:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6iKh-0003NT-N7 for submit@debbugs.gnu.org; Fri, 15 Oct 2010 07:20:22 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:36037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6iKh-0003NO-L5 for submit@debbugs.gnu.org; Fri, 15 Oct 2010 07:20:19 -0400 Original-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@gnu.org; Fri, 15 Oct 2010 07:20:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6iFI-00022x-Ra for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:14:45 -0400 Original-Received: from fmmailgate01.web.de ([217.72.192.221]:50486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6iFI-00022k-Ll for bug-gnu-emacs@gnu.org; Fri, 15 Oct 2010 07:14:44 -0400 Original-Received: from smtp08.web.de ( [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id 64D2916F1C3F3 for ; Fri, 15 Oct 2010 13:14:42 +0200 (CEST) Original-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@gnu.org; Fri, 15 Oct 2010 13:14:42 +0200 Original-Received: from rolf by platon.wg-mit-garten.local with local (Exim 4.69 #1 (Debian)) id 1P6iFF-0005te-Kt for ; Fri, 15 Oct 2010 13:14:41 +0200 X-Sender: rz.unger@web.de 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-Mailman-Approved-At: Fri, 15 Oct 2010 07:30:47 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 15 Oct 2010 07:31:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:40907 Archived-At: 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