all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
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	[thread overview]
Message-ID: <83y1nawysz.fsf@gnu.org> (raw)
In-Reply-To: <87o7o6lshs.fsf@dod.no> (message from Steinar Bang on Sun, 02 Apr 2023 08:15:27 +0200)

> From: Steinar Bang <sb@dod.no>
> 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).



  reply	other threads:[~2023-04-02  7:03 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 [this message]
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
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=83y1nawysz.fsf@gnu.org \
    --to=eliz@gnu.org \
    --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.