comparison src/coding.c @ 106918:d6e8fa5622b7

Fix ccl encoding of unibyte source.
author Kenichi Handa <handa@m17n.org>
date Wed, 20 Jan 2010 11:33:52 +0900
parents 64cd76243389
children dfc03b454687
comparison
equal deleted inserted replaced
106917:f2b3ddaeec24 106918:d6e8fa5622b7
7415 7415
7416 if (! multibytep) 7416 if (! multibytep)
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;
7424 else 7425 else
7425 c = BYTE8_TO_CHAR (*src), src++, pos++; 7426 c = BYTE8_TO_CHAR (*src), src++, pos++;