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: Mon, 21 Sep 2015 23:07:52 +0300 Message-ID: <83fv27mt7r.fsf@gnu.org> References: <20150921165211.20434.28114@vcs.savannah.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1442866120 15057 80.91.229.3 (21 Sep 2015 20:08:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2015 20:08:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 21 22:08:31 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 1Ze7O2-0000yh-HJ for ged-emacs-devel@m.gmane.org; Mon, 21 Sep 2015 22:08:30 +0200 Original-Received: from localhost ([::1]:60965 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze7Nw-0006ek-8q for ged-emacs-devel@m.gmane.org; Mon, 21 Sep 2015 16:08:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44472) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze7NL-0006du-R1 for emacs-devel@gnu.org; Mon, 21 Sep 2015 16:07:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze7NI-0001O7-8h for emacs-devel@gnu.org; Mon, 21 Sep 2015 16:07:47 -0400 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:52509) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze7NI-0001O1-1G for emacs-devel@gnu.org; Mon, 21 Sep 2015 16:07:44 -0400 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NV100G00LR7OG00@mtaout29.012.net.il> for emacs-devel@gnu.org; Mon, 21 Sep 2015 23:08:21 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV1009KSMLXHQ50@mtaout29.012.net.il>; Mon, 21 Sep 2015 23:08:21 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:190216 Archived-At: > From: Stefan Monnier > Cc: Eli Zaretskii > Date: Mon, 21 Sep 2015 15:57:48 -0400 > > > Don't rely on defaults in decoding UTF-8 encoded Lisp files > > FWIW, I've removed the "coding: utf-8" thingy on a bunch of files in the > last year. > > Why not? Because I'm tired of hunting problems with raw bytes being displayed, just to learn yet another deficiency in our guesswork. > 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.