From 396475b7c1ae2e1a5b1d4be68e6b5b0819a7695b Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 7 Sep 2010 20:08:46 +0900 Subject: [PATCH] coding.c (detect_coding_emacs_mule): Fix checking of multibyte sequence when the source is multibyte. --- src/ChangeLog | 5 +++++ src/coding.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 8a0b1b094b..3dda03c963 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-09-07 Kenichi Handa + + * coding.c (detect_coding_emacs_mule): Fix checking of multibyte + sequence when the source is multibyte. + 2010-08-31 Kenichi Handa * dispextern.h (FACE_FOR_CHAR): Use an ASCII face for 8-bit diff --git a/src/coding.c b/src/coding.c index aef80f5cc8..d62998f4c8 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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) { -- 2.20.1