From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: decode-coding-string gone awry? Date: Tue, 15 Feb 2005 10:31:12 +0100 Message-ID: References: <200502140150.KAA29610@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1108460565 32460 80.91.229.2 (15 Feb 2005 09:42:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 15 Feb 2005 09:42:45 +0000 (UTC) Cc: emacs-devel@gnu.org, Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 15 10:42:44 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D0zDR-0003ZJ-Ud for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2005 10:41:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0zTA-0003Bd-0Q for ged-emacs-devel@m.gmane.org; Tue, 15 Feb 2005 04:58:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0zQs-0002lY-EI for emacs-devel@gnu.org; Tue, 15 Feb 2005 04:55:50 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0zQo-0002id-3J for emacs-devel@gnu.org; Tue, 15 Feb 2005 04:55:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0zQn-0002US-GX for emacs-devel@gnu.org; Tue, 15 Feb 2005 04:55:45 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D0z39-0000ji-7M for emacs-devel@gnu.org; Tue, 15 Feb 2005 04:31:19 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1D0yyw-000771-2a; Tue, 15 Feb 2005 04:26:58 -0500 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Tue, 15 Feb 2005 01:15:54 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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 X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33466 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33466 Richard Stallman writes: > > (setq output (decode-coding-string output > > buffer-file-coding-system)) > > And this decode-coding-string treats the internal byte sequence > of a multibyte string OUTPUT as utf-8, thus you get some > garbage. > > Is it reasonable to operate with decode-coding-string on a multibyte > string? If that is nonsense, maybe we should make it get an error, > to help people debug such problems. In my case, this might have helped. I would not have been able to make head or tails of the error at first, but without the error I would have looked elsewhere for the problem. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum