GNU bug report logs -
#25458
25.1; tar mode does not handle compressed archives without specific extensions
Previous Next
Full log
Message #34 received at 25458 <at> debbugs.gnu.org (full text, mbox):
>> From: Lars Ingebrigtsen <larsi <at> gnus.org>
>> Cc: pot <at> gnu.org, 25458 <at> debbugs.gnu.org
>> Date: Fri, 13 May 2022 17:53:15 +0200
>>
>> Eli Zaretskii <eliz <at> gnu.org> writes:
>>
>> > But decompressing means, for most compression types, running an
>> > external program on the file. Or does OP suggest that we link Emacs
>> > against libbz2, liblz4, liblzma, etc. to have these decompression
>> > methods available in core?
>>
>> No, it would work just like when you read a tar.gz file -- we use
>> external decompressors for that, too, even if we then parse the
>> resulting tar file ourselves.
>
>Then I guess I don't understand what is the problem we are asked to
>fix here. Francesco, can you explain?
If I read foo.tar into Emacs, where foo.tar was created with
$ tar -Jcf foo.tar any.file.name
then Emacs does not recognise it as a tar file. Instead, it should look at it, understand that it is a compressed tar file, uncompress and parse it. If asked to save it after modification, it should compress it before saving, using the same compression method that was used in the first place.
Compression would be transparent to Emacs if it relied on Tar for parsing the tar file, because Tar manages compressed files transparently. But since Emacs parses the tar file itself, it should behave as Tar does, that is, uncompress the file if it was compressed in the first place, and recompress when saving it after editing.
This bug report was last modified 3 years and 3 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.