From: Kenichi Handa Date: Tue, 5 Feb 2008 04:12:52 +0000 (+0000) Subject: (decode_eol): Pay attention to coding->dst_multibyte. X-Git-Tag: emacs-pretest-23.0.90~8178 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69b8522de8408ba8403e74cdc21c6b241072af90;p=emacs.git (decode_eol): Pay attention to coding->dst_multibyte. --- diff --git a/src/coding.c b/src/coding.c index 89a3090fa56..7e9a497f1e5 100644 --- a/src/coding.c +++ b/src/coding.c @@ -5717,7 +5717,10 @@ decode_eol (coding) 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;