changeset 91535:419a669bc4f2

(decode_eol): Pay attention to coding->dst_multibyte.
author Kenichi Handa <handa@m17n.org>
date Tue, 05 Feb 2008 04:12:52 +0000
parents 63bda081619f
children 99cac7a703b5
files src/coding.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Feb 05 03:56:41 2008 +0000
+++ b/src/coding.c	Tue Feb 05 04:12:52 2008 +0000
@@ -5717,7 +5717,10 @@
 		  pos_end--;
 		}
 	      pos++;
-	      pos_byte += BYTES_BY_CHAR_HEAD (*p);
+	      if (coding->dst_multibyte)
+		pos_byte += BYTES_BY_CHAR_HEAD (*p);
+	      else
+		pos_byte++;
 	    }
 	}
       coding->produced -= n;