all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steinar Bang <sb@dod.no>
To: help-gnu-emacs@gnu.org
Subject: Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye"
Date: Mon, 03 Apr 2023 00:57:11 +0200	[thread overview]
Message-ID: <87wn2tki48.fsf@dod.no> (raw)
In-Reply-To: <CAP_d_8UB+=X4_W7Z2xCn46dLDiKSK=a5FYLSNFAuX5AkSjmCNw@mail.gmail.com> (Yuri Khan's message of "Mon, 3 Apr 2023 03:10:46 +0700")

>>>>> Yuri Khan <yuri.v.khan@gmail.com>:

> ZIP archives are not defined by the magic number in the starting
> bytes. It is valid to prepend anything to a ZIP archive. This is used
> by self-extracting archives where the starting part is an executable.

> The defining part of a ZIP archive is the End of central directory
> record, magic number PK\x05\x06; it is optionally preceded by Zip64
> extensions (PK\x06\x07 and PK\x06\x06), further preceded by Central
> directory headers (PK\x01\x02). These are sufficient for displaying a
> directory listing of the archive.

> PK\x03\x04 is the signature for Local file header, which marks the
> start of an actual compressed file’s data. So, indeed, a plain
> unadorned non-empty ZIP archive will start with PK\x03\x04, but it is
> not the magic number for ZIP archives and a conforming archive
> processor should not scan specifically for that, at least until it is
> asked to actually extract enclosed files.

Not saying it should. 

Just saying it looks like the code doesn't find what it looks for in
that file and that's why it gets the Args out of range error.



  reply	other threads:[~2023-04-02 22:57 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-02  6:15 jar files won't open in emacs 27.1 on debian 11.6 "bullseye" Steinar Bang
2023-04-02  7:03 ` Eli Zaretskii
2023-04-02 15:03   ` Steinar Bang
2023-04-02 15:12     ` Eli Zaretskii
2023-04-02 18:59       ` Steinar Bang
2023-04-02 19:23         ` Eli Zaretskii
2023-04-02 22:53           ` Steinar Bang
2023-04-03  6:35             ` Steinar Bang
2023-04-03  6:56               ` Steinar Bang
2023-04-03  7:43                 ` Steinar Bang
2023-05-07  7:42                 ` Steinar Bang
2023-04-02 20:10         ` Yuri Khan
2023-04-02 22:57           ` Steinar Bang [this message]
2023-04-02  8:35 ` Michael Albinus
2023-04-02 12:50   ` Steinar Bang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wn2tki48.fsf@dod.no \
    --to=sb@dod.no \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.