[Top][All Lists]

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

Re: [Unicode-2] `read' always returns multibyte symbol

From: Katsumi Yamaoka
Subject: Re: [Unicode-2] `read' always returns multibyte symbol
Date: Wed, 14 Nov 2007 12:56:54 +0900
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

>>>>> Kenichi Handa <address@hidden> wrote:

> In addition, I think it is the right thing that the above
> code return t; i.e. any symbol created by reading a
> multibyte buffer should have a multibyte string name.

I agree with that behavior.

> The bug to fix is that the following code also returns t in
> emacs-unicode-2.

> < --8<---------------cut here---------------start------------->8---
> < (let ((string (encode-coding-string "local.テスト" 'utf-8)))
> <   (with-temp-buffer
> <     (set-buffer-multibyte nil)
> <     (insert string)
> <     (goto-char (point-min))
> <     (multibyte-string-p (symbol-name (read (current-buffer))))))
> < --8<---------------cut here---------------end--------------->8---

Sure.  I'll try using a unibyte buffer to parse active data
(after the bug is fixed).


reply via email to

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