HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38356c7
)
_buffer_size): If coding->type is
author
Kenichi Handa
<handa@m17n.org>
Wed, 4 Jun 2003 12:43:09 +0000
(12:43 +0000)
committer
Kenichi 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
patch
|
blob
|
blame
|
history
diff --git
a/src/coding.c
b/src/coding.c
index
a7484b4
..
b6458f2
100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-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