aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2010-01-20 11:33:52 +0900
committerKenichi Handa2010-01-20 11:33:52 +0900
commit4d1e6632e7195a82088408817a6b3db7e520d370 (patch)
treecb6db6987bbce2445624ae2643c73552bd02ee13 /src/coding.c
parentb7235808116742ec0a7aacbe53fb80db13ce5ef7 (diff)
parent1fdede8fa561814c5535de26f1f505e29cb38b33 (diff)
downloademacs-4d1e6632e7195a82088408817a6b3db7e520d370.tar.gz
emacs-4d1e6632e7195a82088408817a6b3db7e520d370.zip
Fix ccl encoding of unibyte source.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index b3a51eb0c4c..935d32e6a58 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -7417,7 +7417,8 @@ consume_chars (coding, translation_table, max_lookup)
7417 { 7417 {
7418 EMACS_INT bytes; 7418 EMACS_INT bytes;
7419 7419
7420 if (coding->encoder == encode_coding_raw_text) 7420 if (coding->encoder == encode_coding_raw_text
7421 || coding->encoder == encode_coding_ccl)
7421 c = *src++, pos++; 7422 c = *src++, pos++;
7422 else if ((bytes = MULTIBYTE_LENGTH (src, src_end)) > 0) 7423 else if ((bytes = MULTIBYTE_LENGTH (src, src_end)) > 0)
7423 c = STRING_CHAR_ADVANCE_NO_UNIFY (src), pos += bytes; 7424 c = STRING_CHAR_ADVANCE_NO_UNIFY (src), pos += bytes;