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: ^M in the info files Date: Sat, 10 Jan 2009 14:14:18 +0200 Message-ID: References: <00aa01c951a0$4535a2d0$0200a8c0@us.oracle.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1231589674 12694 80.91.229.12 (10 Jan 2009 12:14:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2009 12:14:34 +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 Jan 10 13:15:44 2009 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.50) id 1LLckh-0003h4-4Q for ged-emacs-devel@m.gmane.org; Sat, 10 Jan 2009 13:15:43 +0100 Original-Received: from localhost ([127.0.0.1]:52681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLcjQ-0006tU-TX for ged-emacs-devel@m.gmane.org; Sat, 10 Jan 2009 07:14:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LLcjK-0006tP-Py for emacs-devel@gnu.org; Sat, 10 Jan 2009 07:14:18 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LLcjI-0006tA-Vo for emacs-devel@gnu.org; Sat, 10 Jan 2009 07:14:17 -0500 Original-Received: from [199.232.76.173] (port=43980 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LLcjI-0006t7-RR for emacs-devel@gnu.org; Sat, 10 Jan 2009 07:14:16 -0500 Original-Received: from mtaout5.012.net.il ([84.95.2.13]:38043) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LLcjI-0000bv-BU for emacs-devel@gnu.org; Sat, 10 Jan 2009 07:14:16 -0500 Original-Received: from conversion-daemon.i_mtaout5.012.net.il by i_mtaout5.012.net.il (HyperSendmail v2004.12) id <0KD900A008HM3M00@i_mtaout5.012.net.il> for emacs-devel@gnu.org; Sat, 10 Jan 2009 14:14:21 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.238.249]) by i_mtaout5.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KD9005NT8NXZ720@i_mtaout5.012.net.il>; Sat, 10 Jan 2009 14:14:21 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:107748 Archived-At: > Date: Sat, 10 Jan 2009 13:15:51 +0200 > From: Eli Zaretskii > Cc: emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, emacs-devel@gnu.org > > The changes I installed are more thorough than what Juanma posted: > they change both detect_coding and detect_coding_system, and also bind > inhibit-null-byte-detection in a couple more places in info.el. When documenting the new option, I found a strange inconsistency between detect-coding-region/string and coding detection by insert-file-contents. If null bytes are detected, detect_coding sets up to use no-conversion, but detect-coding-region/string does not call detect_coding. Instead, detect-coding-region/string call detect_coding_system, which does not return no-conversion for a region or string that include null bytes. insert-file-contents does use no-conversion for files that contain null bytes, but it does so because decode_coding_gap does call detect_coding. This creates an inconsistency for Lisp programs that do their own decoding: if they call detect-coding-region/string for a region or string with null bytes, they will not see no-conversion in the return value, but insert-file-contents will use no-conversion nonetheless. I think this inconsistency constitutes a bug.