From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chris Moore" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: jka-compr.el doesn't recognise gzipped files from their magic bytes Date: Mon, 17 Sep 2007 21:28:24 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190057330 10176 80.91.229.12 (17 Sep 2007 19:28:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 19:28:50 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 17 21:28:42 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IXMGr-0004ZB-KT for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 21:28:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXMGq-0001zY-7S for ged-emacs-devel@m.gmane.org; Mon, 17 Sep 2007 15:28:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IXMGn-0001yr-KU for emacs-devel@gnu.org; Mon, 17 Sep 2007 15:28:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IXMGl-0001yD-7s for emacs-devel@gnu.org; Mon, 17 Sep 2007 15:28:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXMGl-0001yA-3C for emacs-devel@gnu.org; Mon, 17 Sep 2007 15:28:31 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXMGk-0007Nz-Rm for emacs-devel@gnu.org; Mon, 17 Sep 2007 15:28:30 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXMGE-0000ad-RS for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 15:27:58 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IXMGh-0007MN-FJ for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 15:28:29 -0400 Original-Received: from nz-out-0506.google.com ([64.233.162.233]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IXMGg-0007Lw-JT for emacs-pretest-bug@gnu.org; Mon, 17 Sep 2007 15:28:26 -0400 Original-Received: by nz-out-0506.google.com with SMTP id f1so913664nzc for ; Mon, 17 Sep 2007 12:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=qep3I7hFfkEDFNDEQoiorx1zZCrasNsCtA5mKUmkEIo=; b=TF0GtJ3b7TQuCjbQfk4MYG3mgHPvcEcuz72VmwTWN+rbDfo7ZwzobVSNBnwYzcXjRvTRZWKOxLl3ts5UwNBMaw4hKXbRj9jd81Rv+FJH0oVNxYFnO3ScXXgGnjSRMu0/3t42JXeKgNbisVlUMz36Q88U/rObyrFWXX8224tORr0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=iRIfFrYlf4oVI2RjicE7VAOj8AwzRbQlcHd4bc3v+onkYbaiQQ59RVGTcogySNGkmv454Svzrcl1ktxmNJRJAv7o7DmEuBYXDgjE7WmIHnSeGFM7W33QCJI0dFtBu4IME2uVnqn3VLWTHN57eGf9/9lA3dypgLG57GdNQG3IM0o= Original-Received: by 10.142.178.13 with SMTP id a13mr1163518wff.1190057305035; Mon, 17 Sep 2007 12:28:25 -0700 (PDT) Original-Received: by 10.142.162.8 with HTTP; Mon, 17 Sep 2007 12:28:24 -0700 (PDT) Content-Disposition: inline X-Detected-Kernel: Linux 2.6 (newer, 2) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79123 gmane.emacs.pretest.bugs:19908 Archived-At: 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.