From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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 17:29:38 -0400 Message-ID: References: <20150921165211.20434.28114@vcs.savannah.gnu.org> <83fv27mt7r.fsf@gnu.org> <83wpvfix7i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443130260 19115 80.91.229.3 (24 Sep 2015 21:31:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Sep 2015 21:31:00 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 24 23:30:49 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 1ZfE6K-0003vM-Ut for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2015 23:30:49 +0200 Original-Received: from localhost ([::1]:35252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfE6J-0004XJ-SI for ged-emacs-devel@m.gmane.org; Thu, 24 Sep 2015 17:30:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfE5q-0004Wa-6F for emacs-devel@gnu.org; Thu, 24 Sep 2015 17:30:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfE5p-0000IR-Fs for emacs-devel@gnu.org; Thu, 24 Sep 2015 17:30:18 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:40988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfE5k-0000GV-IT; Thu, 24 Sep 2015 17:30:12 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 6245D24249; Thu, 24 Sep 2015 17:30:11 -0400 (EDT) Original-Received: from lechon.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 19A431E5B9F; Thu, 24 Sep 2015 17:29:39 -0400 (EDT) Original-Received: by lechon.iro.umontreal.ca (Postfix, from userid 20848) id B2FC9B41B1; Thu, 24 Sep 2015 17:29:38 -0400 (EDT) In-Reply-To: <83wpvfix7i.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Sep 2015 19:44:17 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, MC_TSTLAST 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 132.204.24.67 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:190338 Archived-At: >> > 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 Hmm.... I don't think this is using prefer-utf-8. `prefer-utf-8' is used for *.el files via file-coding-system-alist. Stefan