[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/fns.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/fns.c |
Date: |
Mon, 18 Jul 2005 22:38:57 -0400 |
Index: emacs/src/fns.c
diff -c emacs/src/fns.c:1.398 emacs/src/fns.c:1.399
*** emacs/src/fns.c:1.398 Mon Jul 4 16:06:31 2005
--- emacs/src/fns.c Tue Jul 19 02:38:57 2005
***************
*** 1153,1165 ****
It is similar to (decode-coding-string STRING 'emacs-mule-unix).
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 "\300\201") 0) -> 192 (aka ?\300)
! (aref (string-as-multibyte "\300\201") 1) -> 129 (aka ?\201)
but
! (aref (string-as-multibyte "\201\300") 0) -> 2240
! (aref (string-as-multibyte "\201\300") 1) -> <error> */)
(string)
Lisp_Object string;
{
--- 1153,1165 ----
It is similar to (decode-coding-string STRING 'emacs-mule-unix).
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 "\\300\\201") 0) -> 192 (aka ?\\300)
! (aref (string-as-multibyte "\\300\\201") 1) -> 129 (aka ?\\201)
but
! (aref (string-as-multibyte "\\201\\300") 0) -> 2240
! (aref (string-as-multibyte "\\201\\300") 1) -> <error> */)
(string)
Lisp_Object string;
{