From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master db828f6: Don't rely on defaults in decoding UTF-8 encoded Lisp files Date: Fri, 25 Sep 2015 15:32:11 -0700 Organization: UCLA Computer Science Department Message-ID: <5605CB6B.4000102@cs.ucla.edu> References: <20150921165211.20434.28114@vcs.savannah.gnu.org> <83fv27mt7r.fsf@gnu.org> <83wpvfix7i.fsf@gnu.org> <83fv23hr0z.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1443220387 4250 80.91.229.3 (25 Sep 2015 22:33:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 22:33:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 26 00:33:00 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 1ZfbY3-0002Ru-Cj for ged-emacs-devel@m.gmane.org; Sat, 26 Sep 2015 00:32:59 +0200 Original-Received: from localhost ([::1]:50792 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfbY2-0007Vn-Nc for ged-emacs-devel@m.gmane.org; Fri, 25 Sep 2015 18:32:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34238) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfbXO-0006Zw-UZ for emacs-devel@gnu.org; Fri, 25 Sep 2015 18:32:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfbXO-0005ZE-3D for emacs-devel@gnu.org; Fri, 25 Sep 2015 18:32:18 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfbXK-0005XK-BT; Fri, 25 Sep 2015 18:32:14 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 22A901611B7; Fri, 25 Sep 2015 15:32:12 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id SV_c3Si5bE-C; Fri, 25 Sep 2015 15:32:11 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 6F3901611C0; Fri, 25 Sep 2015 15:32:11 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2WxZgk9C-x6J; Fri, 25 Sep 2015 15:32:11 -0700 (PDT) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 554C51611B1; Fri, 25 Sep 2015 15:32:11 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:190348 Archived-At: Stefan Monnier wrote: > we won't want to have redundant "coding:utf-8" tags everywhere, so we need > to find ways to go from here (i.e. "need a coding: tag for any non-ASCII > file") to there. Yes, requiring coding: cookies for every UTF-8 file is error-prone. We can't easily put cookies into every such file, as some of them are copied verbatim from other sources. And even for our own files, it's too easy to add a bit of UTF-8 text to a cookieless file and forget to add a cookie. Here's a better idea. Developers that use a UTF-8 locale are OK already. Let's suggest to the remaining developers that they put something like the following into their .emacs: (add-hook 'auto-coding-functions (lambda (size) 'utf-8)) This will let Emacs default to UTF-8 for files that don't already have a coding cookie.