From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: unibyte<->multibyte conversion [Re: Emacs-diffs Digest, Vol 2, Issue 28] Date: Mon, 20 Jan 2003 15:55:56 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200301202055.h0KKtun11691@rum.cs.yale.edu> References: <3405-Sat18Jan2003154003+0200-eliz@is.elta.co.il> <200301200229.LAA16287@etlken.m17n.org> <6480-Mon20Jan2003214849+0200-eliz@is.elta.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043096350 5373 80.91.224.249 (20 Jan 2003 20:59:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 20:59:10 +0000 (UTC) Cc: handa@m17n.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18aj0d-0001OK-00 for ; Mon, 20 Jan 2003 21:59:07 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18ajBg-0001Gm-00 for ; Mon, 20 Jan 2003 22:10:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aj0u-0007kD-0A for emacs-devel@quimby.gnus.org; Mon, 20 Jan 2003 15:59:24 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18aj0K-0007U3-00 for emacs-devel@gnu.org; Mon, 20 Jan 2003 15:58:48 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18aizf-0006us-00 for emacs-devel@gnu.org; Mon, 20 Jan 2003 15:58:08 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aixb-0005XD-00; Mon, 20 Jan 2003 15:55:59 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h0KKtun11691; Mon, 20 Jan 2003 15:55:56 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Eli Zaretskii" Original-cc: rms@gnu.org Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10918 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10918 > > Date: Mon, 20 Jan 2003 11:29:51 +0900 (JST) > > From: Kenichi Handa > > > > > AFAIK, raw-text does decode the text in the sense that > > > 8-bit characters which have their 8th bit set are decoded > > > into the eight-bit-* charsets. > > > > Yes, but that is only in the case that you read a file into > > a multibyte buffer by raw-text. This conversion from raw > > byte sequence to multibyte form is what done by > > string-to-multibyte which I wrote in the previous mail. > > > > On process reading, if raw-text is used, the process output > > is at first read as a unibyte string, the string is coverted > > to multibyte by string-as-mulitbyte (not by not-yet-existing > > string-to-multibyte), then inserted in a multibyte buffer. > > Sorry, I don't think I understand the difference. What will we have > in the buffer after process output is converted as you describe in the > last paragraph above? While we're at it, how about making string-as-multibyte obsolete ? It's not used much and it has been abused many times in the past. Also, I believe it's more or less equivalent to (decode-coding-string str 'emacs-mule) I'd be interested to know what are the differences, if any. Stefan