From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David Glasser" Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] support filename prefixes and 100-character filenames in tar-mode.el Date: Tue, 15 Apr 2008 16:17:27 -0700 Message-ID: <1ea387f60804151617g5bb966b2t88232b96fada99a9@mail.gmail.com> References: <1ea387f60804111051o5e51d86akf34f5d80c4f2fd35@mail.gmail.com> <87od8d33oq.fsf@jurta.org> <1ea387f60804131848g1becbb24o2cb62fd428ae0f5f@mail.gmail.com> <87y77e28ux.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208321149 23863 80.91.229.12 (16 Apr 2008 04:45:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 04:45:49 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Juri Linkov" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 16 06:45:50 2008 connect(): Connection refused 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 1Jly0m-0003Pv-Jb for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 05:08:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jly08-0008HX-2d for ged-emacs-devel@m.gmane.org; Tue, 15 Apr 2008 23:08:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JluPD-0000n5-69 for emacs-devel@gnu.org; Tue, 15 Apr 2008 19:17:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JluPC-0000mr-9K for emacs-devel@gnu.org; Tue, 15 Apr 2008 19:17:38 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JluPC-0000mn-6e for emacs-devel@gnu.org; Tue, 15 Apr 2008 19:17:38 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.241] helo=rv-out-0506.google.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JluPB-0002U7-SL for emacs-devel@gnu.org; Tue, 15 Apr 2008 19:17:38 -0400 Original-Received: by rv-out-0506.google.com with SMTP id k29so1706805rvb.6 for ; Tue, 15 Apr 2008 16:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=a2V7FkU31pEySy4xtIsrggFStmdzh6BUnkcl46VRKe8=; b=BXMswkm9ezV69KWtdA1Ctecot/f17RsEoQDT4GeceNFMvyp5095j8sXNq+eO76P7hbdiam9im4ZBlfiKaHksGD9jtjtvqgVWbM90j1KbWeFn1/5iAQIDACRGDB0y5aKMvnjzsYwOZyzsNKe2PjuGWddHGaJRe1aYSDiPiFCNTiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=hYWQcxWc8IHY+/LjoMC5IyYA5BgZ3t28j4m6lW1l+9h/QeE5XqoGTc/8UNXGGSfa+57KfCDDLNFjub9uVhJ5fM5yL830STnU0AnvZLQDbV5lz5jTSMg+lMWcpe38cAT70TOOGv+/c99d+2NkPkdBiXl311qQToZrImI/FF9fzR8= Original-Received: by 10.140.126.10 with SMTP id y10mr4673199rvc.214.1208301447982; Tue, 15 Apr 2008 16:17:27 -0700 (PDT) Original-Received: by 10.140.142.5 with HTTP; Tue, 15 Apr 2008 16:17:27 -0700 (PDT) In-Reply-To: <87y77e28ux.fsf@jurta.org> Content-Disposition: inline X-Google-Sender-Auth: 6bc6b396a7078843 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 15 Apr 2008 23:07:55 -0400 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:95327 Archived-At: On Tue, Apr 15, 2008 at 3:35 PM, Juri Linkov wrote: > >> > With all of the patch except for the change in the initial > >> > initialization of name-end, the results look correct, except the > >> > penultimate line ends in "foo2" instead of "foo20"; that is because > >> > the name field here fill the entire field with no nulls, but the code > >> > previously assumed there would be at least one null. (It's possible > >> > that similar adjustments are required for the initial values of > >> > link-end, gname-end, and uname-end.) > >> > >> Does your patch also handle @LongLink currently unsupported by tar-mode.el? > > > > Is it actually unsupported? When I tried to make a tarball to test > > this issue with GNU tar, I saw stuff about "@LongLink" when I opened > > it in tar-mode. (Try making a tarball from the one I sent using GNU > > tar; you'll see what I mean; I made my test tarball with pax, since > > that was what was used to make the one I opened when I first noticed > > this issue.) I don't know if it was correct or not, though. > > Please see a test tarball attached below. It is correctly created with > GNU tar, but opening it in Emacs displays the following message: > > Warning: premature EOF parsing tar file > > Also its file listing is incomplete, file names are truncated, and content > of some files is inserted into the file listing in the tar-mode buffer. > > I thought your patch will fix these problems. Ugh, that's pretty gross. Mine fixes issues with a different way of encoding long file names, as far as I understand. However, there is *some* long-link support in tar-mode.el, just not whatever's up with that file. --dave -- David Glasser | glasser@davidglasser.net | http://www.davidglasser.net/