comparison src/coding.c @ 110334:4ad4f097835e

coding.c (detect_coding_emacs_mule): Fix checking of multibyte sequence when the source is multibyte.
author Kenichi Handa <handa@m17n.org>
date Tue, 07 Sep 2010 20:08:46 +0900
parents 62d9702eb261
children 3ffb3b102dae
comparison
equal deleted inserted replaced
110131:cca2a663ef92 110334:4ad4f097835e
2029 && (c == ISO_CODE_ESC || c == ISO_CODE_SI || c == ISO_CODE_SO)) 2029 && (c == ISO_CODE_ESC || c == ISO_CODE_SI || c == ISO_CODE_SO))
2030 break; 2030 break;
2031 } 2031 }
2032 else 2032 else
2033 { 2033 {
2034 int more_bytes = emacs_mule_bytes[*src_base] - 1; 2034 int more_bytes = emacs_mule_bytes[c] - 1;
2035 2035
2036 while (more_bytes > 0) 2036 while (more_bytes > 0)
2037 { 2037 {
2038 ONE_MORE_BYTE (c); 2038 ONE_MORE_BYTE (c);
2039 if (c < 0xA0) 2039 if (c < 0xA0)