[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unibyte<->multibyte conversion [Re: Emacs-diffs Digest, Vol 2, Issue

From: Stefan Monnier
Subject: Re: unibyte<->multibyte conversion [Re: Emacs-diffs Digest, Vol 2, Issue 28]
Date: Mon, 20 Jan 2003 15:55:56 -0500

> > Date: Mon, 20 Jan 2003 11:29:51 +0900 (JST)
> > From: Kenichi Handa <address@hidden>
> > 
> > > 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]