From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22436: read-coding-system uses wrong default when called from write-file Date: Sat, 23 Jan 2016 16:39:14 +0200 Message-ID: <83zivw4ay5.fsf@gnu.org> References: <83zivx5mwu.fsf@gnu.org> <83vb6k6dqi.fsf@gnu.org> <8337to5rz9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1453560025 7120 80.91.229.3 (23 Jan 2016 14:40:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2016 14:40:25 +0000 (UTC) Cc: rcopley@gmail.com, 22436@debbugs.gnu.org To: Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 15:40:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1aMzML-0007qA-9P for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 15:40:13 +0100 Original-Received: from localhost ([::1]:57662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMzMK-0008Ml-Hh for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 09:40:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMzMF-0008Mg-KA for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 09:40:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMzMA-0000Vg-JC for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 09:40:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMzMA-0000VZ-FS for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 09:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aMzMA-0004JF-8k for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 09:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jan 2016 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22436 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22436-submit@debbugs.gnu.org id=B22436.145355995316502 (code B ref 22436); Sat, 23 Jan 2016 14:40:02 +0000 Original-Received: (at 22436) by debbugs.gnu.org; 23 Jan 2016 14:39:13 +0000 Original-Received: from localhost ([127.0.0.1]:58436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMzLK-0004I3-91 for submit@debbugs.gnu.org; Sat, 23 Jan 2016 09:39:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56442) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMzLF-0004HW-DR for 22436@debbugs.gnu.org; Sat, 23 Jan 2016 09:39:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMzL5-0000NW-CF for 22436@debbugs.gnu.org; Sat, 23 Jan 2016 09:39:00 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49989) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMzL5-0000NR-8e; Sat, 23 Jan 2016 09:38:55 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2248 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aMzL4-000176-GD; Sat, 23 Jan 2016 09:38:54 -0500 In-reply-to: (message from Lars Magne Ingebrigtsen on Sat, 23 Jan 2016 14:55:50 +0100) 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111891 Archived-At: > From: Lars Magne Ingebrigtsen > Cc: rcopley@gmail.com, 22436@debbugs.gnu.org > Date: Sat, 23 Jan 2016 14:55:50 +0100 > > >> Could the default be improved upon? > > > > We can sort the list differently. But if all we want is to always get > > UTF-8 at the head, there's a much easier way, see my other message > > where I mentioned prefer-coding-system. > > I guess I'm just saying that I think the least surprising default coding > system here would be utf-8. For you, maybe. What about all those Chinese out there? What if I'm writing an email to someone in China? Etc., etc. > That is, Emacs should say utf-8 unless the user has called > `prefer-coding-system' with something else. Most people who care about that already have their locales use UTF-8. So the problem largely doesn't exist. It's not an accident that this was reported by a Windows user. Anyway, this stuff worked for years, why should we suddenly change?