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: Wed, 10 Feb 2010 02:09:56 +0200 Organization: JURTA Message-ID: <87d40dvrar.fsf@mail.jurta.org> References: <87bpfzxana.fsf@mail.jurta.org> <83y6j2ca3r.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265764952 2008 80.91.229.12 (10 Feb 2010 01:22:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 01:22:32 +0000 (UTC) Cc: 5553@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 02:22:29 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 1Nf1Hg-0002kI-Qn for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 02:22:29 +0100 Original-Received: from localhost ([127.0.0.1]:60399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf1Hg-00055y-3H for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 20:22:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nf1Hc-00055f-4E for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 20:22:24 -0500 Original-Received: from [199.232.76.173] (port=59690 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nf1Hb-00055X-H5 for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 20:22:23 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nf1HZ-0006ID-8Y for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 20:22:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:41089) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nf1HZ-0006I9-0X for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 20:22:21 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nf10n-0005I8-PE; Tue, 09 Feb 2010 20:05:01 -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: Wed, 10 Feb 2010 01:05:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5553 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5553-submit@debbugs.gnu.org id=B5553.126576384720298 (code B ref 5553); Wed, 10 Feb 2010 01:05:01 +0000 Original-Received: (at 5553) by debbugs.gnu.org; 10 Feb 2010 01:04:07 +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 1Nf0zi-0005Gz-W2 for submit@debbugs.gnu.org; Tue, 09 Feb 2010 20:04:07 -0500 Original-Received: from smtp-out4.starman.ee ([85.253.0.6] helo=mx2.starman.ee) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf0zh-0005Go-88 for 5553@debbugs.gnu.org; Tue, 09 Feb 2010 20:03:53 -0500 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.32.208.cable.starman.ee [82.131.32.208]) by mx2.starman.ee (Postfix) with ESMTP id 5FDBF3F40AA; Wed, 10 Feb 2010 03:03:44 +0200 (EET) In-Reply-To: <83y6j2ca3r.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 10 Feb 2010 00:34:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 09 Feb 2010 20:05:01 -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:34995 Archived-At: > Thanks, but please provide a self-contained recipe for reproducing the > problem, starting with "emacs -Q". AFAICS, it is not reproducible with "emacs -Q" where visited archives and images with non-standard file extensions are visited in proper modes. The problem appears with using Unicad (http://code.google.com/p/unicad/). Basically what is does boils down to the following line: (add-to-list 'auto-coding-functions 'unicad-universal-charset-detect) The rest is just statistical guessing of the coding system based solely on the content of the file, and in case of archives and images, the guess is incorrect, and `magic-fallback-mode-alist' fails to match a mode regexp at the beginning of the buffer. So the question is whether we should complement entries in `magic-fallback-mode-alist' with the corresponding entries in `auto-coding-regexp-alist' with the same regexps (like we complement entries in `auto-mode-alist' with entries in `auto-coding-alist')? Or every function in `auto-coding-functions' that determines a coding system should somehow take care of exceptions in `magic-fallback-mode-alist'? -- Juri Linkov http://www.jurta.org/emacs/