From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#22436: read-coding-system uses wrong default when called from write-file Date: Sat, 23 Jan 2016 14:12:20 +0100 Message-ID: References: <83zivx5mwu.fsf@gnu.org> <83vb6k6dqi.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1453554802 26652 80.91.229.3 (23 Jan 2016 13:13:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Jan 2016 13:13:22 +0000 (UTC) Cc: Richard Copley , 22436@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 23 14:13:10 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 1aMy05-0006D7-Qx for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 14:13:10 +0100 Original-Received: from localhost ([::1]:57286 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMy04-0004Fe-OL for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Jan 2016 08:13:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMxzy-0004Dg-No for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 08:13:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMxzx-0003gA-Sl for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 08:13:02 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMxzx-0003g6-Pd for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 08:13:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aMxzx-0002G1-Jb for bug-gnu-emacs@gnu.org; Sat, 23 Jan 2016 08:13:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Magne Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jan 2016 13:13:01 +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.14535547688654 (code B ref 22436); Sat, 23 Jan 2016 13:13:01 +0000 Original-Received: (at 22436) by debbugs.gnu.org; 23 Jan 2016 13:12:48 +0000 Original-Received: from localhost ([127.0.0.1]:58391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMxzk-0002FV-1h for submit@debbugs.gnu.org; Sat, 23 Jan 2016 08:12:48 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:47636) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aMxzh-0002FM-Pi for 22436@debbugs.gnu.org; Sat, 23 Jan 2016 08:12:46 -0500 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aMxzI-000821-Js; Sat, 23 Jan 2016 14:12:20 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEXRWf8G7esB9vn/APAA /Pv+G/+nfPr/AOsV4dYi0btjncP/Bf7zNP8B8/kA+fs2vLLQiq3cAAABjElEQVQ4jb2RLZPCMBBA V1VhYE6cJYOlpgKBu4mOQ4E4VYGtQOP4CT11DlHLoGowdVHnE9GJbXwVt7vloxztzM2JezTbZN9u UlrY9ABdyWSTJDCLZkmEi2g2iyK8GuY5RAf8Ifkhn+fEIecJ5D38g1hcxfKeOy4XCBwXXaw0tBYc VgVGrVkUlFxpfdItoCh0wb0a4EHcZgMNg9OTCGAAARDX/C8IguAx8X4VcRzz/bKOe/iDyLJsnd3Y r/dNZNFJv9j10BLbRzHsAUwnXwLFFO+mGTSdcr7kjsr6sDLGVqbytMagwBvvlVMeoaiUwRLvHGBC ca4iJ22zg5NAtdY7KZVzGD2DE8D9raf9uJOPsFihgI6r8FzcSilqNpaPA0uisoJW1Ga8tSzo4Suu IuU8ziWfwX9tGpaWH4I24jwJgZcVIhTcEU5UyB3CiLEQpZQluonzksqpA1/k+P5OR0MhMEsdre+x 3aKiMXqRb/DBpGlKY5dePtn29SKegfP5XOO9rutn8YP6E0s/O0TDN6Psk6p/9pJNAAAAAElFTkSu QmCC In-Reply-To: <83vb6k6dqi.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 23 Jan 2016 07:56:05 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aMxzI-000821-Js MailScanner-NULL-Check: 1454159542.7361@Zz5P+Hze5Dyw4CWFRPevaQ 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:111887 Archived-At: Eli Zaretskii writes: > Your locale's default encoding, cp1252, cannot encode this character, > so Emacs asked you to provide an encoding that can, and offered > chinese-iso-8bit as the default. While correct, it is a slightly less than helpful default. Most people deal (at most) with two charsets: One local, and if not, then Unicode. (Which would be utf8 on most systems, and possibly ucs16 on Windows, I dunno.) So `chinese-iso-8bit' is a surprising default. Could the default be improved upon? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no