From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye" Date: Mon, 3 Apr 2023 03:10:46 +0700 Message-ID: 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="16788"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Steinar Bang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 22:11:48 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 1pj43I-0004Da-Hc for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 22:11:48 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pj42h-0004ZW-8N; Sun, 02 Apr 2023 16:11:12 -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 1pj42b-0004ZI-Ss for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 16:11:05 -0400 Original-Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pj42X-0007jl-RJ for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 16:11:05 -0400 Original-Received: by mail-wm1-x334.google.com with SMTP id u11-20020a05600c19cb00b003edcc414997so16896736wmq.3 for ; Sun, 02 Apr 2023 13:11:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680466258; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=A1rP08l+SZ4AR3rpTcghrKouSDedkaaO0nBuTrxUZjc=; b=ccHZg9XUGRII0Dvtlhn1tycPDV82hUReIUz9K+De3Kt5a5ZzOSl87Eq7BOVHSQ/b2j 6aQvaQ7kIa5VReB80xyblfqsKe1ON57IqBWBKDchCHVWcMu2Ist5IqmlqxgbR/dSMTWq y1WqTaU7uvzCfByxu3zbTkMPjzFCYh7+NL6nUwOnHNYcmW4QIlalrWWMRua6YrBO3LQB hqkRlqe1H5ngP+qivVeUR3+TfEcxMyp7EAIH9jFVoIMwBCwnXO04CdIAtviQnVXC/Iq7 iFmTiuiZFSjwaQSGR20Xxs5JSgtgUFNyZjNW37fZjSjQQUlGr/EjosDh9cq0yOXs7oc3 TBXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680466258; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A1rP08l+SZ4AR3rpTcghrKouSDedkaaO0nBuTrxUZjc=; b=4s8x5G2BlEOIi5vsRwvKTdsZro4IO/OOWD0WS6C/IwGScXw1NF0SCwvNCLSccVi1FG K2w1z0mKrKnCQjt1CosF3ywewepWMwS+5XF6v28OY3gLLH6D3eteCqHMJ0uu8kbAhNdT f8vd9hzPwBZBMmSiGJWadY4dHY8ngKsYcA0/CpUxQDUj68vKEunOSX/hhAZbTG/SDZgF ApUMRk+LT2V+d9BvqhVq/Vhv/zDbqCH9oJI8UL+vDaIvcfgKqkljlEzj3ybGPVxSmjNl iMBukPL1mEFNtZVSpiwnXCOYRPB5qWBgdJTQwRagHRiiWdSoUPS/Wa0fNNz7IbALv8wm yE4A== X-Gm-Message-State: AO0yUKX9uaBb+Lz/ZTHSGXHvKyBc1gDoI1MlLyoSxs9ldPJq6Q72vXbU XEMvLTVSbvXUTNqdQiAh5/6FohbKMx4EMaSATJrxSuOMDhAiUA== X-Google-Smtp-Source: AK7set8BseX16RoaCKyIhy8/GG4UUfyMBLUHSao72TaIFaErdaaq8kXMwLFXhHBIrlNo8AAyDE2plvSAlETLrFRIk5k= X-Received: by 2002:a05:600c:280e:b0:3e2:1d7d:757f with SMTP id m14-20020a05600c280e00b003e21d7d757fmr7456364wmb.1.1680466257588; Sun, 02 Apr 2023 13:10:57 -0700 (PDT) In-Reply-To: <87a5zqkt47.fsf@dod.no> Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=yurivkhan@gmail.com; helo=mail-wm1-x334.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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:143201 Archived-At: On Mon, 3 Apr 2023 at 02:00, Steinar Bang wrote: > Ok, archive-zip-summarize looks for the magic sequence "PK\005\006" or > "PK\006\007" or "PK\006\006" or "PK\001\002". > > But what this jar file starts with, is "PK^c^d", which I think is > "PK\003\004", which is non of the above. > > I.e. archive-zip-summarize doesn't recognize the magic number of these > jar files. 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. See for detai= ls.