From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help 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 Message-ID: <87wn2tki48.fsf@dod.no> References: <87o7o6lshs.fsf@dod.no> <83y1nawysz.fsf@gnu.org> <87edp2l41z.fsf@dod.no> <83pm8mwc65.fsf@gnu.org> <87a5zqkt47.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32156"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 03 00:57:36 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pj6dk-0008A3-4K for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 03 Apr 2023 00:57:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj6dS-0001z3-3J; Sun, 02 Apr 2023 18:57:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pj6dP-0001yV-T8 for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 18:57:16 -0400 Original-Received: from cadalora.bang.priv.no ([46.43.15.90]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj6dO-0007ps-9t for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 18:57:15 -0400 Original-Received: from marquez (unknown [84.210.69.52]) by cadalora.bang.priv.no (Postfix) with ESMTPSA id 906C110068D for ; Sun, 2 Apr 2023 23:57:12 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb; t=1680476232; bh=8TLvAB2+rQNVNynJR2roBlUBoFdwoodXISUXsQnR8Lc=; h=From:To:Subject:References:Date:In-Reply-To:From; b=f/OG7QhQxDqzJAzN5pfyTdwB28Ta37oWp8/aOJgLbOzQH8akPXuGSlXNVkNwmw9+s 5UOTvYnmzHFvSg0I+/nBDInwHtdTv9c0PicOaeRF7gykd5L7bSObhrMAgNj5mEf1D1 RadRIYehOQ7VWln1jNY1f7J5G68qobT2czwOTqzc= In-Reply-To: (Yuri Khan's message of "Mon, 3 Apr 2023 03:10:46 +0700") Received-SPF: none client-ip=46.43.15.90; envelope-from=sb@dod.no; helo=cadalora.bang.priv.no X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143204 Archived-At: >>>>> Yuri Khan : > 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=E2=80=99s 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.=20 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.