From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: ^M in the info files Date: Mon, 12 Jan 2009 15:56:16 -0500 Message-ID: References: <00aa01c951a0$4535a2d0$0200a8c0@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1231793951 21502 80.91.229.12 (12 Jan 2009 20:59:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Jan 2009 20:59:11 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 12 22:00:22 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 1LMTtT-0006Gg-SR for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2009 22:00:20 +0100 Original-Received: from localhost ([127.0.0.1]:60608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMTsD-0004lT-KW for ged-emacs-devel@m.gmane.org; Mon, 12 Jan 2009 15:59:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMTpc-00033E-6P for emacs-devel@gnu.org; Mon, 12 Jan 2009 15:56:20 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMTpb-00032s-SH for emacs-devel@gnu.org; Mon, 12 Jan 2009 15:56:19 -0500 Original-Received: from [199.232.76.173] (port=51825 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMTpb-00032i-G9 for emacs-devel@gnu.org; Mon, 12 Jan 2009 15:56:19 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:20167) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMTpZ-0004MK-Cs; Mon, 12 Jan 2009 15:56:17 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAC89a0lMCpxj/2dsb2JhbACBbNIQhW+BbA X-IronPort-AV: E=Sophos;i="4.37,254,1231131600"; d="scan'208";a="32199211" Original-Received: from 76-10-156-99.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.99]) by ironport2-out.teksavvy.com with ESMTP; 12 Jan 2009 15:56:16 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 3AF138440; Mon, 12 Jan 2009 15:56:16 -0500 (EST) In-Reply-To: (Eli Zaretskii's message of "Sat, 10 Jan 2009 14:14:18 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:107807 Archived-At: > 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. Indeed, it sounds like a bug. Not sure how/when it would manifest itself, tho. Stefan