Mercurial > emacs
changeset 106920:89b4f7566280
Fix ccl encoding of unibyte source.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 20 Jan 2010 13:01:57 +0900 |
parents | 9da21e7d5995 (current diff) 1a8e31a9115a (diff) |
children | 5b57ff7db62f fb153cd1668b 64f5a4a297e8 46c08e6b42d6 |
files | |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Tue Jan 19 19:49:35 2010 -0800 +++ b/src/ChangeLog Wed Jan 20 13:01:57 2010 +0900 @@ -1,3 +1,8 @@ +2010-01-20 Kenichi Handa <handa@m17n.org> + + * coding.c (consume_chars): If ! multibyte and the encoder is ccl, + treat the source as actual byte sequence. + 2010-01-19 Alan Mackenzie <acm@muc.de> Fix spurious before-change-functions invocation from (insert ?\n).
--- a/src/coding.c Tue Jan 19 19:49:35 2010 -0800 +++ b/src/coding.c Wed Jan 20 13:01:57 2010 +0900 @@ -7417,7 +7417,8 @@ { 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;