From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5553: 23.1.92; Archives with wrong coding system Date: Tue, 09 Feb 2010 23:19:27 +0200 Organization: JURTA Message-ID: <87bpfzxana.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265752466 30257 80.91.229.12 (9 Feb 2010 21:54:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2010 21:54:26 +0000 (UTC) To: 5553@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 22:54:24 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ney2J-0007dL-29 for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 22:54:23 +0100 Original-Received: from localhost ([127.0.0.1]:55902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ney2I-00075m-HZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 16:54:22 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ney0N-0006Ju-3y for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:52:23 -0500 Original-Received: from [199.232.76.173] (port=57985 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ney0M-0006Jb-MX for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:52:22 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ney0K-0004kp-Sm for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:52:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34659) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ney0K-0004kl-Ki for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:52:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nexco-0002r6-93; Tue, 09 Feb 2010 16:28:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Juri Linkov Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2010 21:28:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5553 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.126575087310962 (code B ref -1); Tue, 09 Feb 2010 21:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2010 21:27:53 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nexcf-0002ql-5q for submit@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:53 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nexcd-0002qW-Sd for submit@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:52 -0500 Original-Received: from mail.gnu.org ([199.232.76.166]:55424 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NexcZ-0007ai-OZ for submit@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:47 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NexcY-0000pz-5e for submit@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:47 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:58411) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NexcY-0000pt-0i for submit@debbugs.gnu.org; Tue, 09 Feb 2010 16:27:46 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NexcX-0005dW-ED for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:27:45 -0500 Original-Received: from [199.232.76.173] (port=39739 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NexcX-0005dM-0P for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:27:45 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NexcV-0000pl-8J for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:27:44 -0500 Original-Received: from smtp-out4.starman.ee ([85.253.0.6]:45949 helo=mx2.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NexcU-0000pX-Ub for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 16:27:43 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.55.178.cable.starman.ee [82.131.55.178]) by mx2.starman.ee (Postfix) with ESMTP id 5007D3F7E60 for ; Tue, 9 Feb 2010 23:27:35 +0200 (EET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 09 Feb 2010 16:28:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34988 Archived-At: When `archive-mode' is enabled for an archive file with an unknown file extension, using the rule ("\\(PK00\\)?[P]K\003\004" . archive-mode) from `magic-fallback-mode-alist', visiting such a file fails with the args-out-of-range error. The following patch should fix this bug using the same regexp as in `magic-fallback-mode-alist' and the same coding system as for archive file extensions in `auto-coding-alist': === modified file 'lisp/international/mule.el' --- lisp/international/mule.el 2010-02-01 22:57:45 +0000 +++ lisp/international/mule.el 2010-02-09 21:18:51 +0000 @@ -1653,7 +1653,9 @@ (defcustom auto-coding-regexp-alist ("\\`\xFE\xFF" . utf-16be-with-signature) ("\\`\xFF\xFE" . utf-16le-with-signature) ("\\`\xEF\xBB\xBF" . utf-8-with-signature) - ("\\`;ELC\024\0\0\0" . emacs-mule))) ; Emacs 20-compiled + ("\\`;ELC\024\0\0\0" . emacs-mule) ; Emacs 20-compiled + ;; For `archive-mode' in `magic-fallback-mode-alist': + ("\\(PK00\\)?[P]K\003\004" . no-conversion-multibyte))) "Alist of patterns vs corresponding coding systems. Each element looks like (REGEXP . CODING-SYSTEM). A file whose first bytes match REGEXP is decoded by CODING-SYSTEM on reading. -- Juri Linkov http://www.jurta.org/emacs/