[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#1174: 23.0.60; Some UTF-8 mails displaying wrongly in Emacs 23
From: |
Reiner Steib |
Subject: |
bug#1174: 23.0.60; Some UTF-8 mails displaying wrongly in Emacs 23 |
Date: |
Thu, 04 Dec 2008 20:43:41 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) |
On Tue, Dec 02 2008, Stefan Monnier wrote:
>> In Emacs 21 (which Gnus still aim to be compatible with), we have
>> string-as-multibyte, but not string-to-multibyte. So your proposed
>> code (i.e. mm-string-to-multibyte) runs
>
>> (string-as-multibyte (char-to-string string))
>> whereas we used to run
>> (string-as-multibyte string)
>> Does char-to-string matter here?
[...]
>> (lambda (string)
>> "Return a multibyte string with the same individual chars as string."
>> (mapconcat
>> (lambda (ch) (mm-string-as-multibyte (char-to-string ch)))
>> string "")))))
>
> Oh, that's clever: yes, the mapconcat/char-to-string dance does make it
> implement the string-to-multibyte behavior because doing the
> string-as-multibyte conversion one byte at a time avoids the
> problematic case.
Good. So I think you can close this bug. Thanks.
Bye, Reiner.
--
,,,
(o o)
---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/