From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#15803: default-file-name-coding-system: utf-8 better than latin-1 these days? Date: Thu, 30 Nov 2017 20:52:17 -0500 Message-ID: <708ten8bam.fsf@fencepost.gnu.org> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1512093190 7243 195.159.176.226 (1 Dec 2017 01:53:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2017 01:53:10 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) To: 15803@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 01 02:53:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKaVk-0001aD-Oo for geb-bug-gnu-emacs@m.gmane.org; Fri, 01 Dec 2017 02:53:04 +0100 Original-Received: from localhost ([::1]:50726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKaVs-0002zs-53 for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Nov 2017 20:53:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKaVk-0002zn-I9 for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2017 20:53:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKaVj-0002Ah-3E for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2017 20:53:04 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eKaVi-0002AI-VL for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2017 20:53:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eKaVi-0003Pm-Di for bug-gnu-emacs@gnu.org; Thu, 30 Nov 2017 20:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2017 01:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15803 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15803-submit@debbugs.gnu.org id=B15803.151209314713083 (code B ref 15803); Fri, 01 Dec 2017 01:53:02 +0000 Original-Received: (at 15803) by debbugs.gnu.org; 1 Dec 2017 01:52:27 +0000 Original-Received: from localhost ([127.0.0.1]:38808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKaV9-0003Ow-Lc for submit@debbugs.gnu.org; Thu, 30 Nov 2017 20:52:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eKaV7-0003Ok-Sx for 15803@debbugs.gnu.org; Thu, 30 Nov 2017 20:52:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKaV1-0001Wr-9S for 15803@debbugs.gnu.org; Thu, 30 Nov 2017 20:52:20 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKaV1-0001Wm-5U for 15803@debbugs.gnu.org; Thu, 30 Nov 2017 20:52:19 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1eKaUz-00043r-IZ; Thu, 30 Nov 2017 20:52:17 -0500 X-Spook: Semtex Security Council ASDIC Bridge investigation FAMS X-Ran: [8"iHjq\Q'$=3,~H"GGoz@{~!^O&!Q0Hp'rqnbdK=rhGS"$"o8n} X-Hue: cyan X-Attribution: GM In-Reply-To: (Glenn Morris's message of "Mon, 04 Nov 2013 13:45:32 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140567 Archived-At: Glenn Morris wrote: >> mule-cmds.el calls reset-language-environment, and language/english.el >> calls set-language-info-alist; both have the effect of resetting >> default-file-name-coding-system to latin-1 (!? an interesting >> "default" for a Unicode-era Emacs, perhaps Handa-san could comment why >> we still do that). > > I know nothing about this, but eg glib defaults to utf-8, which seems > like a better default to me these days: > > https://developer.gnome.org/glib/stable/glib-Character-Set-Conversion.html#file-name-encodings ... 4 years pass and latin-1 fails to make a comeback. For some reason, I thought it was difficult to change the default to utf-8 due to bootstrap ordering issues. This was probably prompted by this comment in reset-language-environment: ;; On Darwin systems, this should be utf-8-unix, but when this file is loaded ;; that is not yet defined, so we set it in set-locale-environment instead. (setq default-file-name-coding-system 'iso-latin-1-unix) But looking at it now, I cannot see what this comment is referring to. If I change reset-language-environment so that it sets default-file-name-coding-system (and default-sendmail-coding-system) to 'utf-8, then a bootstrap works fine. It looks like this stuff was all rewritten in Emacs 23. Before that, there used to be international/utf-8.el, which was indeed loaded after mule-cmds. But since Emacs 23, mule-conf seems to define everything. (But that rewrite seems to predate the above comment about Darwin...?) So should the default finally be changed to utf-8?