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: Sat, 26 Sep 2015 23:50:04 +0200 Message-ID: <87twqgrgtv.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> 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 1443304270 26215 80.91.229.3 (26 Sep 2015 21:51:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Sep 2015 21:51:10 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel To: Chad Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 26 23:50:56 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 1ZfxMm-0005ai-GL for ged-emacs-devel@m.gmane.org; Sat, 26 Sep 2015 23:50:48 +0200 Original-Received: from localhost ([::1]:55367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfxMl-0000gk-WF for ged-emacs-devel@m.gmane.org; Sat, 26 Sep 2015 17:50:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfxMj-0000ge-09 for emacs-devel@gnu.org; Sat, 26 Sep 2015 17:50:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfxMi-0002l1-9n for emacs-devel@gnu.org; Sat, 26 Sep 2015 17:50:44 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:48697) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfxMg-0002kN-H3; Sat, 26 Sep 2015 17:50:42 -0400 Original-Received: from localhost ([127.0.0.1]:33499 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZfxMf-0001KA-Tu; Sat, 26 Sep 2015 17:50:42 -0400 Original-Received: by lola (Postfix, from userid 1000) id 29327E2295; Sat, 26 Sep 2015 23:50:04 +0200 (CEST) In-Reply-To: <2FCA0DAD-831B-4B0A-B948-9F31DE52B6F0@gmail.com> (Chad Brown's message of "Sat, 26 Sep 2015 13:26:52 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.10 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:190371 Archived-At: Chad Brown writes: >> On 26 Sep 2015, at 12:35, Eli Zaretskii wrote: >>=20 >> The relevant statistics for Emacs is of source files, not of HTML >> pages. > > The default for GCC is UTF-8. How so? The default is defined by the compiled language. For C, it is essentially 8-bit bytes where the meaning-carrying subset is ASCII. Everything else is just replication. GCC communicates on the terminal with compiler diagnostics. For that it uses the current locale. > Python requires a coding cookie (intentionally similar to Emacs=E2=80=99)= to > get away from Latin-1. Java is UTF-8. Javascript, roughly speaking, > tracks HTML. Which other languages did you have in mind? Emacs is, not least of all, a text editor. I am currently using it to write this Email reply. Not everything that one uses Emacs for has a well-defined default encoding. --=20 David Kastrup