GNU bug report logs - #60896
make error if not in 7z format

Previous Next

Package: emacs;

Reported by: Dan Jacobson <jidanni <at> jidanni.org>

Date: Wed, 18 Jan 2023 00:53:02 UTC

Severity: normal

Tags: moreinfo

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ruijie Yu <ruijie <at> netyu.xyz>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 60896 <at> debbugs.gnu.org, Dan Jacobson <jidanni <at> jidanni.org>
Subject: bug#60896: dired-view-file vs. .7z
Date: Wed, 25 Jan 2023 21:13:15 +0800
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Dan Jacobson <jidanni <at> jidanni.org>
>> Cc: 60896 <at> debbugs.gnu.org,control <at> debbugs.gnu.org
>> Date: Wed, 25 Jan 2023 10:51:43 +0800
>>
>> Well, if the file is not in 7z format,
>> then I hope dired-view-file would make an error message,
>> like it does if a file is not in .gz format:
>> ---
>> Error while executing "gzip -c -q -d < /tmp/x.gz"
>>
>>
>> gzip: stdin: not in gzip format
>
> That gzip error message comes from the gzip program, not from Emacs.
> What does 7z say in a similar case?  That's what dired-view-file
> should show.

See the attachments for example outputs.  #1 is a malformed 7z archive
(in my case just an empty file created by `touch`), and #2 contains an
actual 7z archive created by `7z a 2.7z memsize.c`.

Best,


RY

[1-out.txt (text/plain, attachment)]
[2-out.txt (text/plain, attachment)]

This bug report was last modified 1 year and 263 days ago.

Previous Next


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