From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#19393: 25.0.50; Emacs cannot determine coding system of ISO-8859 encoded files Date: Tue, 16 Dec 2014 20:22:11 +0100 Message-ID: <87bnn3s8m4.fsf@thinkpad-t440p.tsdh.org> References: <87sigfpqmx.fsf@thinkpad-t440p.tsdh.org> <83oar3wpf1.fsf@gnu.org> <83mw6nwoqe.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418757803 14475 80.91.229.3 (16 Dec 2014 19:23:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Dec 2014 19:23:23 +0000 (UTC) Cc: 19393@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 16 20:23:17 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y0xiH-0000di-0F for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 20:23:17 +0100 Original-Received: from localhost ([::1]:46357 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0xiG-0006Op-Bd for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Dec 2014 14:23:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0xi8-0006Oi-4t for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:23:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0xi2-0000vG-Qi for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:23:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38759) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0xi2-0000v9-N9 for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:23:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y0xi2-0002Yf-2Q for bug-gnu-emacs@gnu.org; Tue, 16 Dec 2014 14:23:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Dec 2014 19:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19393 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 19393-submit@debbugs.gnu.org id=B19393.14187577409775 (code B ref 19393); Tue, 16 Dec 2014 19:23:02 +0000 Original-Received: (at 19393) by debbugs.gnu.org; 16 Dec 2014 19:22:20 +0000 Original-Received: from localhost ([127.0.0.1]:48125 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0xhM-0002Xb-8k for submit@debbugs.gnu.org; Tue, 16 Dec 2014 14:22:20 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58845) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y0xhJ-0002XS-32 for 19393@debbugs.gnu.org; Tue, 16 Dec 2014 14:22:17 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id E959720A05 for <19393@debbugs.gnu.org>; Tue, 16 Dec 2014 14:22:16 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 16 Dec 2014 14:22:16 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:in-reply-to :references:date:message-id:mime-version:content-type; s= smtpout; bh=EjofO4pR0f1ZaCsYalHruMArMgM=; b=nlCKdLtKtJqu6GnDgQ0d hcPTcKYB749l521x/FUXcUhcOzPMDxwk3d6ZFiH8mZphaIMnDP51Vg2hUm0y+EWL Ecjmp+9m36id2tXtZPNapU4B8LPINR71akqPRsmkbtIHUHCZV9bOnASLKSAmqM5H ZOuu+/Dg4thsAkZG7qdNuEI= X-Sasl-enc: C6fFdrJ4w5Pc4k0B0x2wQ0koyl8J+1aNVbAyXnM/pf1U 1418757736 Original-Received: from thinkpad-t440p.tsdh.org (unknown [2.163.175.46]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A1B8C00285; Tue, 16 Dec 2014 14:22:15 -0500 (EST) In-Reply-To: <83mw6nwoqe.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 16 Dec 2014 18:20:25 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:97399 Archived-At: Eli Zaretskii writes: >> > However, according to the `file' command, the file is plain ISO-8859. >> >> Looks like some kind of bug, although with such a large file, it's not >> easy to be sure. > > Actually, I don't think this is a bug. There are ISO-8859-15 > characters in that file that are not part of ISO-8859-1, so Emacs will > not detect that encoding unless either (a) your locale dictates that > encoding, It doesn't. > or (b) you change the preferences to prefer ISO-8859-15. Is there a way to prefer ISO-8859-15 over ISO-8859-1? The manual I can only find the command `prefer-coding-system' which doesn't seem to do what I want. I wan't to reorder the "priority list for automatic detection" so that ISO-8859-15 is before ISO-8859-1 but still UTF-8 is the very first entry (as it's dictated by my locale). > This is so with any 8-bit encoding -- EMacs cannot easily distinguish > between them, and needs some guidance. Ok, I see. And as Wolfgang said, some chars in the file are encoded wrongly using Windows-1250. That probably adds to the problem. Thanks for the explanation! Bye, Tassilo