emacs-devel
[Top][All Lists]
Advanced

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

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


From: Kenichi Handa
Subject: Re: unibyte<->multibyte conversion [Re: Emacs-diffs Digest, Vol 2, Issue 28]
Date: Tue, 21 Jan 2003 15:43:11 +0900 (JST)
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.2.92 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI)

In article <address@hidden>, Eli Zaretskii <address@hidden> writes:
> On Mon, 20 Jan 2003, Stefan Monnier wrote:

>>  > unibyte sequence (hex): 81    81    C0    C0
>>  >                         result of conversion    display in multbyte buffer
>>  > string-as-multibyte:    9E A1 81    C0    C0    \201À\300
>>  > string-make-multibyte:  9E A1 9E A1 81 C0 81 C0 \201\201ÀÀ
>>  > string-to-multibyte:    9E A1 9E A1 C0    C0    \201\201\300\300
>>  [...]
>>  3 - when called with a `raw-text' coding-system, decode-coding-string
>>      returns a unibyte string

> I might be missing something, but I think you are wrong: the sequence
> "9E A1 9E A1 C0 C0" is _not_ a unibyte string.

I didn't wrote that is a unibyte string.  In the above
example, only the first line is the unibyte string.  The
remaining lines shows the result of unibyte->multibyte
conversion, thus they are multibyte strings.

> For example, "9E A1" is the multibyte encoding of the 81
> byte.

Yes.

---
Ken'ichi HANDA
address@hidden




reply via email to

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