From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master db828f6: Don't rely on defaults in decoding UTF-8 encoded Lisp files Date: Thu, 24 Sep 2015 19:44:17 +0300 Message-ID: <83wpvfix7i.fsf@gnu.org> References: <20150921165211.20434.28114@vcs.savannah.gnu.org> <83fv27mt7r.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443113074 3035 80.91.229.3 (24 Sep 2015 16:44:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2015 16:44:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: monnier@IRO.UMontreal.CA Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 24 18:44:26 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Zf9dC-0003l9-78 for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2015 18:44:26 +0200 Original-Received: from localhost ([::1]:47153 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf9dB-0006ZR-F1 for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2015 12:44:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf9d8-0006YV-4r for emacs-devel@gnu.org; Thu, 24 Sep 2015 12:44:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf9d3-0005eR-6M for emacs-devel@gnu.org; Thu, 24 Sep 2015 12:44:22 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:55128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf9d2-0005eF-Uk for emacs-devel@gnu.org; Thu, 24 Sep 2015 12:44:17 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NV600A00X26CP00@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Thu, 24 Sep 2015 19:44:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV600ALPX5RC410@a-mtaout20.012.net.il>; Thu, 24 Sep 2015 19:44:15 +0300 (IDT) In-reply-to: <83fv27mt7r.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190334 Archived-At: > Date: Mon, 21 Sep 2015 23:07:52 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > > Since Emacs-24.4 the coding-system Emacs uses for .el files is > > `prefer-utf-8', i.e. it is explicitly defined to be "utf-8 if it is > > valid" > > I don't think prefer-utf-8 does what you say here. In any case, I've > seen the default decoding do incorrect things, and I see no reason to > risk that in files we control. Here's an example, btw: emacs -Q M-x set-locale-environment RET he_IL.ISO-8859-8 RET C-x C-f doc/lispref/tips.texi RET The encoding-detection guesswork fails even with the current Git master, let alone Emacs 24.5. Use '(skip-chars-forward "\000-\177")' to find the mess it produces.