1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-19 12:20:17 -08:00

Fix ccl encoding of unibyte source.

This commit is contained in:
Kenichi Handa 2010-01-20 11:33:52 +09:00
commit 4d1e6632e7
35 changed files with 439 additions and 224 deletions

View file

@ -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;