From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: jar files won't open in emacs 27.1 on debian 11.6 "bullseye" Date: Sun, 02 Apr 2023 10:03:40 +0300 Message-ID: <83y1nawysz.fsf@gnu.org> References: <87o7o6lshs.fsf@dod.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10900"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 02 09:04:19 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 1pirlC-0002g2-UW for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 Apr 2023 09:04:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pirkM-0001um-PQ; Sun, 02 Apr 2023 03:03:26 -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 1pirkI-0001ry-5y for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 03:03:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pirkH-0000c8-TR for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 03:03:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=YsdmjsBShArJoEfJf8NnZlIzTgTXN+HN3UFA0YsglP8=; b=NPWSwW1NcdQG L0s8WWxUbo4ef1TWACN6SRG2GTqHeyo58Q7Ec7p2i1z8DKK4x6sdc48U2lwLC8usKRp4k3y34GJwh Rsz5pgefvRNeqoDeGfYBd7VMqJv3p0eoI1IozKrH0TDihSwXCy/lJsPEjBvpsLrWLr3BeBPzygjFJ sVHvJRWBqDSuxXLLJB24M2ej5dW7F4NyE3rPlctpaVBn1ONTvu2U6y5Nu0O2lhyizWcvmtWOVg92E jSrTeXD9Mpp9qVZEAyUU4eShrTJakAsCkGorlFKbzQGsf0XfAUhKzNRJFU21MpZbYlcGNgPc+uS// sWoofwB75qGn4p9MH+37Rw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pirkG-0002C5-QQ for help-gnu-emacs@gnu.org; Sun, 02 Apr 2023 03:03:21 -0400 In-Reply-To: <87o7o6lshs.fsf@dod.no> (message from Steinar Bang on Sun, 02 Apr 2023 08:15:27 +0200) 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:143190 Archived-At: > From: Steinar Bang > Date: Sun, 02 Apr 2023 08:15:27 +0200 > > Platform: amd64 > debian 11.6 "bullseye" > GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2023-02-23, modified by Debian > unzip 6.0-26+deb11u1 > libbz2 1.0.8-4 > > I tried opening some jar files yesterday. I expected them to open in > unzip mode and show the "directory listing" of the jar file contents > (jar files are zip files). > > But of these files: > -rw-r--r-- 1 sb sb 52055 Apr 1 20:41 modelstore.backend-1.0.0-SNAPSHOT.jar > -rw-r--r-- 1 sb sb 455179 Apr 1 20:41 modelstore.backend-1.0.0-SNAPSHOT-javadoc.jar > -rw-r--r-- 1 sb sb 28639 Apr 1 20:41 modelstore.backend-1.0.0-SNAPSHOT-sources.jar > > The modelstore.backend-1.0.0-SNAPSHOT.jar and the > modelstore.backend-1.0.0-SNAPSHOT-sources.jar file opened showing just > the following contents: > M Filemode Length Date Time File > - ---------- -------- ----------- -------- -------- > - ---------- -------- ----------- -------- -------- > 0 0 files > > The modelstore.backend-1.0.0-SNAPSHOT-javadoc.jar files just gives the > following error message, and doesn't open: > File mode specification error: (args-out-of-range modelstore.backend-1.0.0-SNAPSHOT-javadoc.jar 445526 445530) I cannot reproduce this with a random .jar file I have here and with Emacs 27.1. So I guess this is something specific to that particular jar file. > Any idea of how to debug this? Step with Edebug through arc-mode.el and see why it signals the error? It is possible that the jar file you tried uses some extensions of the ZIP format which were not yet supported in Emacs 27, so perhaps try with a later version of Emacs. > Does the zip support of emacs 27.1 come in the form of running unzip in > a sub-process? Or does it use a linked in library? (libbz2...?) Neither. Just visiting a zip file doesn't require any of that, at least not by default (I have no idea whether Ubuntu made any changes in the upstream sources or in site-wide customizations).