coding.c (detect_coding_emacs_mule): Fix checking of multibyte sequence when the...
authorKenichi Handa <handa@m17n.org>
Tue, 7 Sep 2010 11:08:46 +0000 (20:08 +0900)
committerKenichi Handa <handa@m17n.org>
Tue, 7 Sep 2010 11:08:46 +0000 (20:08 +0900)
src/ChangeLog
src/coding.c

index 8a0b1b0..3dda03c 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-07  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (detect_coding_emacs_mule): Fix checking of multibyte
+       sequence when the source is multibyte.
+
 2010-08-31  Kenichi Handa  <handa@m17n.org>
 
        * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit
index aef80f5..d62998f 100644 (file)
@@ -2031,7 +2031,7 @@ detect_coding_emacs_mule (coding, detect_info)
        }
       else
        {
-         int more_bytes = emacs_mule_bytes[*src_base] - 1;
+         int more_bytes = emacs_mule_bytes[c] - 1;
 
          while (more_bytes > 0)
            {