aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2004-06-13 22:57:46 +0000
committerKenichi Handa2004-06-13 22:57:46 +0000
commitc1136bda637a0dfd25c68a3113992780c62ff0b1 (patch)
treee92a89ec6f63b3063523ef1d83bba52d44a1960c
parent092de21d0b192c737e6f3ca52563bf5ac03c885f (diff)
downloademacs-c1136bda637a0dfd25c68a3113992780c62ff0b1.tar.gz
emacs-c1136bda637a0dfd25c68a3113992780c62ff0b1.zip
(ccl-encode-mule-utf-8): Fix previous change.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/international/utf-8.el13
2 files changed, 10 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7971f1bdfc7..291a8993270 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12004-06-14 Kenichi Handa <handa@m17n.org>
2
3 * international/utf-8.el (ccl-encode-mule-utf-8): Fix previous
4 change.
5
12004-06-13 Richard M. Stallman <rms@gnu.org> 62004-06-13 Richard M. Stallman <rms@gnu.org>
2 7
3 * textmodes/paragraphs.el (sentence-end): Add 0x5397d as close brace. 8 * textmodes/paragraphs.el (sentence-end): Add 0x5397d as close brace.
diff --git a/lisp/international/utf-8.el b/lisp/international/utf-8.el
index 25ec185f545..77a51abb43f 100644
--- a/lisp/international/utf-8.el
+++ b/lisp/international/utf-8.el
@@ -684,10 +684,9 @@ eight-bit-control and eight-bit-graphic characters.")
684 ;; 0000 0yyy yyxx xxxx 110y yyyy 10xx xxxx 684 ;; 0000 0yyy yyxx xxxx 110y yyyy 10xx xxxx
685 ;; 20 0000 0000 1010 0000 1100 0010 1010 0000 685 ;; 20 0000 0000 1010 0000 1100 0010 1010 0000
686 ;; 7f 0000 0000 1111 1111 1100 0011 1011 1111 686 ;; 7f 0000 0000 1111 1111 1100 0011 1011 1111
687 ((r0 = (((r1 & #x40) >> 6) | #xc2)) 687 ((write ((r1 >> 6) | #xc2))
688 (r1 &= #x3f) 688 (r1 &= #x3f)
689 (r1 |= #x80) 689 (r1 |= #x80)
690 (write r0)
691 (write-repeat r1))) 690 (write-repeat r1)))
692 691
693 (if (r0 == ,(charset-id 'mule-unicode-0100-24ff)) 692 (if (r0 == ,(charset-id 'mule-unicode-0100-24ff))
@@ -759,15 +758,13 @@ eight-bit-control and eight-bit-graphic characters.")
759 (if (r0 < #x800) 758 (if (r0 < #x800)
760 ;; 2byte encoding 759 ;; 2byte encoding
761 ((write ((r0 >> 6) | #xC0)) 760 ((write ((r0 >> 6) | #xC0))
762 (r1 &= #x3F) 761 (r0 = ((r0 & #x3F) | #x80))
763 (r1 |= #x80) 762 (write-repeat r0))
764 (write-repeat r1))
765 ;; 3byte encoding 763 ;; 3byte encoding
766 ((write ((r0 >> 12) | #xE0)) 764 ((write ((r0 >> 12) | #xE0))
767 (write (((r0 & #x0FC0) >> 6) | #x80)) 765 (write (((r0 & #x0FC0) >> 6) | #x80))
768 (r1 &= #x3F) 766 (r0 = ((r0 & #x3F) | #x80))
769 (r1 |= #x80) 767 (write-repeat r0))))
770 (write-repeat r1))))
771 768
772 ;; Unsupported character. 769 ;; Unsupported character.
773 ;; Output U+FFFD, which is `ef bf bd' in UTF-8. 770 ;; Output U+FFFD, which is `ef bf bd' in UTF-8.