_buffer_size): If coding->type is

coding_type_ccl, double magnification on CRLF encoding.
This commit is contained in:
Kenichi Handa 2003-06-04 12:43:09 +00:00
parent 38356c7211
commit a84f151963

View 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