>>>>> On Tue, 19 Jul 2005 07:41:33 +0900, YAMAMOTO Mitsuharu <[EMAIL
>>>>> PROTECTED]> said:
> I was trying to make a coding system that almost works as utf-8, but
> additionally does "HFS+ composition" (canonical composition with
> some exclusions) on decoding.
> (when str
> (erase-buffer)
> (insert (if enable-multibyte-characters
> (string-as-multibyte str) str)))
Maybe this part should have been string-to-multibyte.
BTW, I noticed that backslashes in the docstring of
string-as-multibyte are stripped off as follows:
If you're not sure, whether to use `string-as-multibyte' or
`string-to-multibyte', use `string-to-multibyte'. Beware:
(aref (string-as-multibyte "201") 0) -> 129 (aka ?201)
(aref (string-as-multibyte "300") 0) -> 192 (aka ?300)
(aref (string-as-multibyte "300201") 0) -> 192 (aka ?300)
(aref (string-as-multibyte "300201") 1) -> 129 (aka ?201)
but
(aref (string-as-multibyte "201300") 0) -> 2240
(aref (string-as-multibyte "201300") 1) -> <error>
YAMAMOTO Mitsuharu
[EMAIL PROTECTED]
_______________________________________________
Emacs-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-devel