From: Kenichi Handa Date: Wed, 4 Jun 2003 12:47:42 +0000 (+0000) Subject: (encoding_buffer_size): If coding->type is X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=80dd51729ac111eaf70505730c63ea6bef20755a;p=emacs.git (encoding_buffer_size): If coding->type is coding_type_ccl, double magnification on CRLF encoding. --- diff --git a/src/coding.c b/src/coding.c index 09caa327ef2..8d0ecb8b148 100644 --- a/src/coding.c +++ b/src/coding.c @@ -4392,7 +4392,11 @@ encoding_buffer_size (coding, src_bytes) int magnification; if (coding->type == coding_type_ccl) - magnification = coding->spec.ccl.encoder.buf_magnification; + { + magnification = coding->spec.ccl.encoder.buf_magnification; + if (coding->eol_type == CODING_EOL_CRLF) + magnification *= 2; + } else if (CODING_REQUIRE_ENCODING (coding)) magnification = 3; else