_buffer_size): If coding->type is
authorKenichi Handa <handa@m17n.org>
Wed, 4 Jun 2003 12:43:09 +0000 (12:43 +0000)
committerKenichi Handa <handa@m17n.org>
Wed, 4 Jun 2003 12:43:09 +0000 (12:43 +0000)
coding_type_ccl, double magnification on CRLF encoding.

src/coding.c

index a7484b4..b6458f2 100644 (file)
@@ -4505,7 +4505,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