From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.devel Subject: Re: Need some help with Rmail/mbox Date: Sat, 20 Sep 2008 19:04:33 +0900 Message-ID: <03b276ff-e070-465e-9486-c02e4725a3e0@broken.deisui.org> References: <87y71o4xw6.fsf@xemacs.org> <48D33A10.4040102@pajato.com> <871vzfi93y.fsf@xemacs.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221905107 32520 80.91.229.12 (20 Sep 2008 10:05:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2008 10:05:07 +0000 (UTC) Cc: Paul Michael Reilly , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 20 12:06:03 2008 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 1KgzLc-0001eW-Oa for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2008 12:05:53 +0200 Original-Received: from localhost ([127.0.0.1]:52634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgzKb-00061a-Dw for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2008 06:04:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgzKU-00061U-C8 for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:04:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgzKS-00060o-97 for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:04:41 -0400 Original-Received: from [199.232.76.173] (port=41987 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgzKS-00060c-4h for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:04:40 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.175]:48375) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgzKR-0000Mx-Jb for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:04:39 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so1113236wfc.24 for ; Sat, 20 Sep 2008 03:04:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type :sender; bh=7wKTtkQtPJCKbxR7ljzMqs6SCpNhs8Z296275us8R9Y=; b=S5DZe2z/mAXPbZoqNvr0QEET9/gSehDjL2+Jh+hY6jcC4YmVorSKDiP3WxZ9pXuhAe r2E6UNqB+iPMGYSN0quply5q8ohP8Uk+eQKosnz2GzGBVEWHVwQHBZspQIvpYaUVmugT moYKCgjyYmIt1Ia0bcY+VCMXGGmTXkW5m+qQA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:sender; b=AOmphCtDF/+0y0Yyp4uw9G8jhZ4ay9YF+uojwwmck+vVe8wDYxpIatryb/m1A7JHZ/ AnwRq/Hrj7Kn5LKzZEXxEmg6rFOOfrT5jbJIBXWc0/PC1TvM+U29UUqKUe8+Nn9T2fI4 P0HoJZWNUalVe2FO7N/1ztt8+DtJY4BvqhEWQ= Original-Received: by 10.142.170.6 with SMTP id s6mr446159wfe.228.1221905078512; Sat, 20 Sep 2008 03:04:38 -0700 (PDT) Original-Received: from chilled ( [221.255.76.222]) by mx.google.com with ESMTPS id 9sm3680686wfc.19.2008.09.20.03.04.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Sep 2008 03:04:37 -0700 (PDT) In-Reply-To: <871vzfi93y.fsf@xemacs.org> (Stephen J. Turnbull's message of "Sat, 20 Sep 2008 16:12:33 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:103984 Archived-At: >>>>> In <871vzfi93y.fsf@xemacs.org> >>>>> "Stephen J. Turnbull" wrote: > Paul Michael Reilly writes: > > But when I started to work on the decoding it seemed that decoding > > the string before inserting it seemed like a good idea. > In XEmacs, string decoding is implemented by copying to a temporary > buffer and doing decode-coding-region there. Emacs is likely the > same. :-) Nope, XEmacs does not have the concept of buffer multibyteness. - If buffer multibyteness is on, both input and output of `decode-coding-region' are treated as multibyte. I think the input should be unibyte since it is byte stream. - If buffer multibyteness is off, both input and output of `decode-coding-region' are treated as unibyte. So, you have to convert the output to multibyte manually. I'd recommend to use `decode-coding-string' and `insert' instead of `decode-coding-region', if unsure. I heard that the reason why FLIM does not use `{de|en}code-coding-region' is to avoid this confusion. Regards, -- Daiki Ueno