|
From: | Stefan Monnier |
Subject: | Re: [Unicode-2] `read' always returns multibyte symbol |
Date: | Tue, 13 Nov 2007 10:10:58 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
> That is because `read' decides the name is unibyte or multibyte by > whether the name is a valid multibyte sequence or not. Yuck. > 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--- Yes, that's a clear bug. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |