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: Need some help with Rmail/mbox Date: Sat, 20 Sep 2008 13:19:11 +0300 Message-ID: References: <87y71o4xw6.fsf@xemacs.org> <48D33A10.4040102@pajato.com> <871vzfi93y.fsf@xemacs.org> <03b276ff-e070-465e-9486-c02e4725a3e0@broken.deisui.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1221906179 3957 80.91.229.12 (20 Sep 2008 10:22:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2008 10:22:59 +0000 (UTC) Cc: pmr@pajato.com, stephen@xemacs.org, emacs-devel@gnu.org To: Daiki Ueno Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 20 12:23:55 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 1Kgzd4-0006FX-N0 for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2008 12:23:54 +0200 Original-Received: from localhost ([127.0.0.1]:58557 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kgzc1-0001Nh-F0 for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2008 06:22:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KgzZm-00013h-6d for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:20:30 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KgzZi-000131-J1 for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:20:27 -0400 Original-Received: from [199.232.76.173] (port=40170 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KgzZi-00012Y-37 for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:20:26 -0400 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:23971) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KgzZh-00021w-Ls for emacs-devel@gnu.org; Sat, 20 Sep 2008 06:20:25 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.116.246]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K7H006SMOPK5A30@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Sat, 20 Sep 2008 13:20:09 +0300 (IDT) In-reply-to: <03b276ff-e070-465e-9486-c02e4725a3e0@broken.deisui.org> 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:103985 Archived-At: > From: Daiki Ueno > Date: Sat, 20 Sep 2008 19:04:33 +0900 > Cc: Paul Michael Reilly , emacs-devel@gnu.org > > > 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. Why? you can always set-buffer-multibyte to the right mode, at least in Emacs. Again, operations on buffers are much more efficient in Emacs than on strings.