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: Inconsistencies regarding nil coding-system Date: Sat, 11 Dec 2010 12:33:06 +0200 Message-ID: <83aakcvbtp.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1292063697 15641 80.91.229.12 (11 Dec 2010 10:34:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Dec 2010 10:34:57 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Dec 11 11:34:53 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PRMmx-0007WR-W5 for ged-emacs-devel@m.gmane.org; Sat, 11 Dec 2010 11:34:52 +0100 Original-Received: from localhost ([127.0.0.1]:33020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRMmx-000737-1T for ged-emacs-devel@m.gmane.org; Sat, 11 Dec 2010 05:34:51 -0500 Original-Received: from [140.186.70.92] (port=37986 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRMl6-0006Do-8u for emacs-devel@gnu.org; Sat, 11 Dec 2010 05:32:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRMl4-00036M-5z for emacs-devel@gnu.org; Sat, 11 Dec 2010 05:32:56 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRMl3-00036B-VO for emacs-devel@gnu.org; Sat, 11 Dec 2010 05:32:54 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LD900100EBJ8M00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sat, 11 Dec 2010 12:32:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.229.142.197]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LD90004TEMRH3C0@a-mtaout22.012.net.il>; Sat, 11 Dec 2010 12:32:52 +0200 (IST) X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133604 Archived-At: (coding-system-change-eol-conversion nil 'unix) => nil (coding-system-change-text-conversion 'latin-1-dos nil) => undecided-dos (coding-system-base nil) => no-conversion When primitives that encode/decode text accept nil as their coding-system argument, they use `undecided' (AFAIK). So the second result above looks reasonable, but the first and the last are inconsistent, and the last one is downright surprising. Any reasons not to change coding-system-change-eol-conversion and coding-system-base to consistently treat nil as `undecided'? (If agreed to, I suggest to make this change only on the trunk, not on the release branch.)