unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Chris Moore" <christopher.ian.moore@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: jka-compr.el doesn't recognise gzipped files from their magic bytes
Date: Mon, 17 Sep 2007 21:28:24 +0200	[thread overview]
Message-ID: <a9691ee20709171228i58da447dk1f035d7b23083c60@mail.gmail.com> (raw)

I'm using an application which saves natively in .sif format, or
optionally in .sifz format, which is the same as .sif, only gzipped.

Opening a .sifz file in Emacs shows binary junk - Emacs doesn't
recognise that it's really a gzipped file, even though it does know
the 'magic' string that identifies all .gz files (see the value of
jka-compr-compression-info-list).

So shouldn't jka-compr look for the magic strings, and identify
gzipped files that way?

I notice that '.svgz', the common name for gzipped .svg vector
graphics files has been hardcoded into jka-cmpr-hook.el, rather than
adding general support for gzipped files, whatever the extension.

             reply	other threads:[~2007-09-17 19:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-17 19:28 Chris Moore [this message]
2007-09-17 20:29 ` jka-compr.el doesn't recognise gzipped files from their magic bytes Eli Zaretskii
2007-09-18  3:35   ` Stephen J. Turnbull
2007-09-18  4:14     ` Eli Zaretskii
2007-09-18  5:49       ` Stephen J. Turnbull
2007-09-18 19:32         ` Eli Zaretskii
2007-09-19  3:55           ` Stephen J. Turnbull
2007-09-19 18:43             ` Eli Zaretskii
2007-09-20 18:53               ` Stephen J. Turnbull
2007-09-20 19:06                 ` Stefan Monnier
2007-09-20 23:24                   ` Stephen J. Turnbull
2007-09-21  3:35                     ` Stefan Monnier
2007-09-21  5:00                       ` Stephen J. Turnbull
2007-09-21  5:10                         ` Kenichi Handa
2007-09-21  6:21                           ` Stephen J. Turnbull
2007-09-21  7:41                             ` Kenichi Handa
2007-09-17 21:50 ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=a9691ee20709171228i58da447dk1f035d7b23083c60@mail.gmail.com \
    --to=christopher.ian.moore@gmail.com \
    --cc=emacs-pretest-bug@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).