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 10:00:30 +0200 Message-ID: <87a8s8qokh.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> <83lhbsfgzs.fsf@gnu.org> <5607A028.90807@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443340854 21048 80.91.229.3 (27 Sep 2015 08:00:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Sep 2015 08:00:54 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 27 10:00:53 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 1Zg6t8-0005H3-MY for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 10:00:50 +0200 Original-Received: from localhost ([::1]:56482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg6t8-0002pB-6o for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 04:00:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52199) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg6ss-0002p1-Mg for emacs-devel@gnu.org; Sun, 27 Sep 2015 04:00:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zg6sr-0000qo-QN for emacs-devel@gnu.org; Sun, 27 Sep 2015 04:00:34 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:53651) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zg6sp-0000pN-Sl; Sun, 27 Sep 2015 04:00:31 -0400 Original-Received: from localhost ([127.0.0.1]:39237 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1Zg6sp-0000SA-8x; Sun, 27 Sep 2015 04:00:31 -0400 Original-Received: by lola (Postfix, from userid 1000) id BA0D4DF4A9; Sun, 27 Sep 2015 10:00:30 +0200 (CEST) In-Reply-To: <5607A028.90807@cs.ucla.edu> (Paul Eggert's message of "Sun, 27 Sep 2015 00:52:08 -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:190385 Archived-At: Paul Eggert writes: > Eli Zaretskii wrote: >> I don't see any language to that effect in the C11 Final Draft I have >> here. AFAICT, non-UTF-8 multibyte sequences are still supported by >> C11. > > Of course; that part didn't change. I was talking about C11's new > UTF-8 string literals, e.g., u8"Emacs=E3=81=AE=E4=B8=BB=E8=A6=81=E6=93=8D= =E4=BD=9C(=E6=97=A9=E8=A6=8B=E8=A1=A8)". Again, are you arguing for or against your own proposals? The _only_ purpose of such string literals is to support generating UTF-8 encoded strings in the executable even when the source file is _not_ encoded in UTF-8. So you argue because C11 contains a feature for supporting source files _not_ encoded in UTF-8, Emacs should support only source files encoded in UTF-8? If anything, this is somewhat of an argument for GDB to preferably interpret C strings as being encoded in UTF-8 even when the source code encoding of a C file appears to be different. We are not talking about editing executables here. We are talking about editing source files. --=20 David Kastrup