From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Automatic recognition of some specific coding systems Date: Wed, 25 Feb 2015 18:19:14 +0200 Message-ID: <83twya55h9.fsf@gnu.org> References: <83fv9v6u5o.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1424881205 3888 80.91.229.3 (25 Feb 2015 16:20:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Feb 2015 16:20:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 25 17:19:56 2015 Return-path: Envelope-to: geh-help-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 1YQegl-000362-In for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2015 17:19:55 +0100 Original-Received: from localhost ([::1]:54837 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQegk-0004uQ-Px for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Feb 2015 11:19:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQeg2-00043F-Dk for help-gnu-emacs@gnu.org; Wed, 25 Feb 2015 11:19:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQefx-00049v-KS for help-gnu-emacs@gnu.org; Wed, 25 Feb 2015 11:19:10 -0500 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:35320) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQefx-00049d-CS for help-gnu-emacs@gnu.org; Wed, 25 Feb 2015 11:19:05 -0500 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NKC0060058F7F00@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 25 Feb 2015 18:19:03 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NKC006AF5BQ5J60@a-mtaout21.012.net.il> for help-gnu-emacs@gnu.org; Wed, 25 Feb 2015 18:19:02 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102885 Archived-At: > From: J=FCrgen Hartmann > Date: Tue, 24 Feb 2015 23:30:49 +0100 >=20 > Consider an utf-8-unix encoded text file, meaningfully named > utf-8-unix, that just contains the seven German special characters >=20 > =A0=A0 =E4=F6=FC=DF=C4=D6=DC=A0=A0 ("a"o"u"s"A"O"U) >=20 > in one single line followed by a newline character. Now we make two > copies of this file and recode them to the other coding systems of > interest: >=20 > =A0=A0 cp utf-8-unix latin-9-unix > =A0=A0 recode ..l9 latin-9-unix >=20 > =A0=A0 cp utf-8-unix cp850-dos > =A0=A0 recode ..pc cp850-dos >=20 > Visiting all tree files in an Emacs session that was freshly starte= d > by means of >=20 > =A0=A0 emacs -Q >=20 > - thank you for that important hint - yields a perfect recognition = of > the respective coding in the case of >=20 > =A0=A0 utf-8-unix > =A0=A0 latin-9-unix=A0=A0 (recognized as latin-1-unix, equivalent h= ere) >=20 > but the recognition fails tor the cp850-dos encoded file, as it is > recognized as >=20 > =A0=A0 raw-text-dos >=20 > encoded and its contents is displayed as >=20 > =A0=A0 \204\224\201\341\216\231\232 That's true, but I see the same behavior in Emacs 22.3, if I invoke i= t with "emacs -q" (lowercase 'q', since 22.x didn't support -Q), so there's no change in behavior here. > So my problem is to find a configuration of Emacs 24.4 that yields = a > correct automatic recognition of all tree coding systems >=20 > =A0=A0 utf-8-unix > =A0=A0 latin-9-unix or > =A0=A0 cp850-dos >=20 > when the files of the example above are visited. One has to keep in > mind that this was perfectly possible with Emacs 22.3, as I just > verified again. How exactly did you verify with v22.3? As I wrote above, I see the same behavior in that version. Did you invoke it with -q? If not, there are some customization of yours that modify the default behavior, and the question becomes how to express the same customizations in Emacs 24.