aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa <[email protected]>2010-01-20 11:33:52 +0900
committerKenichi Handa <[email protected]>2010-01-20 11:33:52 +0900
commit4d1e6632e7195a82088408817a6b3db7e520d370 (patch)
treecb6db6987bbce2445624ae2643c73552bd02ee13 /src/coding.c
parentb7235808116742ec0a7aacbe53fb80db13ce5ef7 (diff)
parent1fdede8fa561814c5535de26f1f505e29cb38b33 (diff)
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 b3a51eb0c4..935d32e6a5 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -7417,7 +7417,8 @@ consume_chars (coding, translation_table, max_lookup)
{
EMACS_INT bytes;
- if (coding->encoder == encode_coding_raw_text)
+ if (coding->encoder == encode_coding_raw_text
+ || coding->encoder == encode_coding_ccl)
c = *src++, pos++;
else if ((bytes = MULTIBYTE_LENGTH (src, src_end)) > 0)
c = STRING_CHAR_ADVANCE_NO_UNIFY (src), pos += bytes;