]> code.delx.au - gnu-emacs/commitdiff
(encode_coding): If eol_type is not yet decided, use
authorKenichi Handa <handa@m17n.org>
Thu, 13 Apr 2006 04:39:20 +0000 (04:39 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 13 Apr 2006 04:39:20 +0000 (04:39 +0000)
system_eol_type.

src/ChangeLog
src/coding.c

index e2da810a4fc85d21090a4b7ce3cfe80f06bed9a0..9955aabd0e7ec52c38caabda135cead5a40a0db0 100644 (file)
@@ -1,6 +1,8 @@
 2006-04-13  Kenichi Handa  <handa@m17n.org>
 
        * coding.c (setup_coding_system): Fix previous change.
+       (encode_coding): If eol_type is not yet decided, use
+       system_eol_type.
 
 2006-04-13  Nick Roberts  <nickrob@snap.net.nz>
 
index 51e76e51b713d33317fa8c21930d64b1b1b5484f..5fb4c202b8550bae14204002f40088eb48e390f8 100644 (file)
@@ -4998,6 +4998,8 @@ encode_coding (coding, source, destination, src_bytes, dst_bytes)
   coding->consumed = coding->consumed_char = 0;
   coding->errors = 0;
   coding->result = CODING_FINISH_NORMAL;
+  if (coding->eol_type == CODING_EOL_UNDECIDED)
+    coding->eol_type = system_eol_type;
 
   switch (coding->type)
     {