changeset 51458:28be64986453

_buffer_size): If coding->type is coding_type_ccl, double magnification on CRLF encoding.
author Kenichi Handa <handa@m17n.org>
date Wed, 04 Jun 2003 12:43:09 +0000
parents 4363ea1a617b
children 21191ba0b2c8
files src/coding.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Wed Jun 04 09:48:59 2003 +0000
+++ b/src/coding.c	Wed Jun 04 12:43:09 2003 +0000
@@ -4505,7 +4505,11 @@
   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