diff 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
line wrap: on
line diff
--- a/src/coding.c	Mon Jan 18 10:19:32 2010 +0900
+++ b/src/coding.c	Wed Jan 20 11:33:52 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;