From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: EOL conversion of files in .tar archives Date: Mon, 21 May 2007 07:15:50 +0200 Message-ID: <85bqgeg3jt.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179724574 11712 80.91.229.12 (21 May 2007 05:16:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 May 2007 05:16:14 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 21 07:16:13 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hq0Fg-0006Dv-1B for ged-emacs-devel@m.gmane.org; Mon, 21 May 2007 07:16:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hq0Fe-00033x-J6 for ged-emacs-devel@m.gmane.org; Mon, 21 May 2007 01:16:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hq0FY-00032J-PY for emacs-devel@gnu.org; Mon, 21 May 2007 01:16:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hq0FW-0002zC-EE for emacs-devel@gnu.org; Mon, 21 May 2007 01:16:03 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hq0FW-0002ys-6N for emacs-devel@gnu.org; Mon, 21 May 2007 01:16:02 -0400 Original-Received: from mail-in-01.arcor-online.net ([151.189.21.41]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Hq0FS-0002NM-Bz; Mon, 21 May 2007 01:15:58 -0400 Original-Received: from mail-in-08-z2.arcor-online.net (mail-in-08-z2.arcor-online.net [151.189.8.20]) by mail-in-01.arcor-online.net (Postfix) with ESMTP id 96D1015BE3E; Mon, 21 May 2007 07:15:52 +0200 (CEST) Original-Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) by mail-in-08-z2.arcor-online.net (Postfix) with ESMTP id 6AAA02130F4; Mon, 21 May 2007 07:15:52 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-003-161.pools.arcor-ip.net [84.61.3.161]) by mail-in-12.arcor-online.net (Postfix) with ESMTP id 51A558C463; Mon, 21 May 2007 07:15:52 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 552F91C4CE33; Mon, 21 May 2007 07:15:51 +0200 (CEST) In-Reply-To: (Kenichi Handa's message of "Mon\, 21 May 2007 13\:48\:20 +0900") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:71463 Archived-At: Kenichi Handa writes: > In article , Eli Zaretskii writes: > >> Lately I noticed that, in the Windows port of Emacs, visiting files in >> .tar archives shows them as if they had DOS EOLs, even though the >> files have Unix EOLs. (This is not due to some recent change: it >> looks like Emacs behaved like that since before the pretest.) > >> Is this intentional, or should I debug it? If the former, can someone >> explain the rationale? > > I think it is a bug of find-buffer-file-type-coding-system > (dos-w32.el). If TARGET is (FILENAME . BUFFER), it should > assume that the file contents is available. Could you > verify that the attached patch is correct? Apropos: take the tar.gz file in (it will be available only a week or so). Move cursor down to .gitignore and press RET. Instead you'll get Makefile, the file one line lower. In general, on every line you'll get the file one line lower. It would appear that this is packed with some version of tar that GNU tar can perfectly well unpack, but with output confusing tar-mode. My tar version is tar (GNU tar) 1.16. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum