From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master db828f6: Don't rely on defaults in decoding UTF-8 encoded Lisp files Date: Sun, 27 Sep 2015 07:29:20 +0200 Message-ID: <87pp14qvkf.fsf@fencepost.gnu.org> References: <20150921165211.20434.28114@vcs.savannah.gnu.org> <83fv27mt7r.fsf@gnu.org> <83wpvfix7i.fsf@gnu.org> <83fv23hr0z.fsf@gnu.org> <5605CB6B.4000102@cs.ucla.edu> <83twqhhf0g.fsf@gnu.org> <5606AC48.7090801@cs.ucla.edu> <83zj09fbzp.fsf@gnu.org> <5606C140.6090309@cs.ucla.edu> <878u7trwlb.fsf@fencepost.gnu.org> <5606E995.2000102@cs.ucla.edu> <83si61ezxd.fsf@gnu.org> <2FCA0DAD-831B-4B0A-B948-9F31DE52B6F0@gmail.com> <87twqgrgtv.fsf@fencepost.gnu.org> <56077423.6030800@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443333300 16793 80.91.229.3 (27 Sep 2015 05:55:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Sep 2015 05:55:00 +0000 (UTC) Cc: emacs-devel To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 27 07:55: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 1Zg4vH-0007x5-Hy for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 07:54:55 +0200 Original-Received: from localhost ([::1]:56191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg4vB-0002cC-L5 for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 01:54:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg4v0-0002c3-6l for emacs-devel@gnu.org; Sun, 27 Sep 2015 01:54:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zg4uz-0004pB-AR for emacs-devel@gnu.org; Sun, 27 Sep 2015 01:54:38 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg4uv-0004op-Uq; Sun, 27 Sep 2015 01:54:33 -0400 Original-Received: from localhost ([127.0.0.1]:37971 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1Zg4uv-0002LJ-Ee; Sun, 27 Sep 2015 01:54:33 -0400 Original-Received: by lola (Postfix, from userid 1000) id 39C09E22AE; Sun, 27 Sep 2015 07:29:20 +0200 (CEST) In-Reply-To: <56077423.6030800@cs.ucla.edu> (Paul Eggert's message of "Sat, 26 Sep 2015 21:44:19 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:190375 Archived-At: Paul Eggert writes: > David Kastrup wrote: >> The default is defined by the compiled language. For C, it is >> essentially 8-bit bytes where the meaning-carrying subset is ASCII. > > That was true for C99 and earlier, but it stopped being true in C11, > where the source-file encoding does matter and where UTF-8 is the only > sane default nowadays. "stopped being true in C11" suggests that the world moved on. Here is the manual extract from the GCC delivered in the latest Ubuntu distribution (the most commonly used GNU/Linux system): A fourth version of the C standard, known as "C11", was published in 2011 as ISO/IEC 9899:2011. GCC has substantially complete support for this standard, enabled with '-std=c11' or '-std=iso9899:2011'. (While in development, drafts of this standard version were referred to as "C1X".) It is not even accepted without using extra options. And we are not talking anyway about the encoding Emacs is to choose for new files but rather about the encoding for opening existing files. How are you going to magically eradicate all pre-C11 files from Earth? Wouldn't it be convenient to actually load them into an editor for doing the conversion? -- David Kastrup