# HG changeset patch # User Kenichi Handa # Date 1087167444 0 # Node ID 4ec2da03a87c4583732af17867f9a750aeafc7f3 # Parent 54229932d09a1ca1aa51623a71c5e9dc9cb784e5 (ccl-encode-mule-utf-8): Fix previous change. diff -r 54229932d09a -r 4ec2da03a87c lisp/international/utf-8.el --- a/lisp/international/utf-8.el Sun Jun 13 22:39:41 2004 +0000 +++ b/lisp/international/utf-8.el Sun Jun 13 22:57:24 2004 +0000 @@ -684,10 +684,9 @@ ;; 0000 0yyy yyxx xxxx 110y yyyy 10xx xxxx ;; 20 0000 0000 1010 0000 1100 0010 1010 0000 ;; 7f 0000 0000 1111 1111 1100 0011 1011 1111 - ((r0 = (((r1 & #x40) >> 6) | #xc2)) + ((write ((r1 >> 6) | #xc2)) (r1 &= #x3f) (r1 |= #x80) - (write r0) (write-repeat r1))) (if (r0 == ,(charset-id 'mule-unicode-0100-24ff)) @@ -759,15 +758,13 @@ (if (r0 < #x800) ;; 2byte encoding ((write ((r0 >> 6) | #xC0)) - (r1 &= #x3F) - (r1 |= #x80) - (write-repeat r1)) + (r0 = ((r0 & #x3F) | #x80)) + (write-repeat r0)) ;; 3byte encoding ((write ((r0 >> 12) | #xE0)) (write (((r0 & #x0FC0) >> 6) | #x80)) - (r1 &= #x3F) - (r1 |= #x80) - (write-repeat r1)))) + (r0 = ((r0 & #x3F) | #x80)) + (write-repeat r0)))) ;; Unsupported character. ;; Output U+FFFD, which is `ef bf bd' in UTF-8.