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: Sun, 27 Sep 2015 23:52:55 +0300 Message-ID: <83wpvbeg9k.fsf@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> <83mvw8fh8g.fsf@gnu.org> <60126F7B-7C7B-41F9-BF0E-F5FE27374F9D@gmail.com> <83zj07emd8.fsf@gnu.org> <773FFA8D-BA87-406D-A6CC-8DC8BFA0951C@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1443387184 6311 80.91.229.3 (27 Sep 2015 20:53:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Sep 2015 20:53:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chad Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 27 22:52: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 1ZgIwJ-0003uR-0W for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 22:52:55 +0200 Original-Received: from localhost ([::1]:58715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgIwI-0004AV-CK for ged-emacs-devel@m.gmane.org; Sun, 27 Sep 2015 16:52:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33760) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgIwF-0004AP-Ik for emacs-devel@gnu.org; Sun, 27 Sep 2015 16:52:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgIwC-0006Th-BU for emacs-devel@gnu.org; Sun, 27 Sep 2015 16:52:51 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:52976) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgIwC-0006Ss-3b for emacs-devel@gnu.org; Sun, 27 Sep 2015 16:52:48 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NVC00H00S12MA00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Sun, 27 Sep 2015 23:52:46 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NVC00HDKSNXN500@a-mtaout21.012.net.il>; Sun, 27 Sep 2015 23:52:46 +0300 (IDT) In-reply-to: <773FFA8D-BA87-406D-A6CC-8DC8BFA0951C@gmail.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.169 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:190418 Archived-At: > From: Chad Brown > Date: Sun, 27 Sep 2015 12:52:15 -0700 > Cc: emacs-devel@gnu.org > > > > On 27 Sep 2015, at 11:41, Eli Zaretskii wrote: > > > >> From: Chad Brown > >> Date: Sun, 27 Sep 2015 09:03:54 -0700 > >> Cc: emacs-devel@gnu.org > >> > >> -finput-charset=charset > >> Set the input character set, used for translation from the character > >> set of the input file to the source character set used by GCC. If > >> the locale does not specify, or GCC cannot get this information > >> from the locale, the default is UTF-8. This can be overridden by > >> either the locale or this command line option. Currently the command > >> line option takes precedence if there's a conflict. charset can be > >> any encoding supported by the system's iconv library routine. > > > > Note the "if the locale does not specify" clause. That should almost > > never happen. > > Sure. I almost mentioned that, but at the time it seemed clear > to me that we were talking about the defaults for each. The issue at hand is whether Emacs should favor UTF-8 _before_ the locale-derived defaults. What happens when the locale cannot be queried wasn't touched at all. I don't think such a situation is a real possibility in the first place, and if it is, I don't object if we'd use UTF-8 in that case.