changeset 20434:9960d1196c09

(setup_coding_system): Do not set Vlast_coding_system_used here. (decode_coding_sjis_big5): Decode Big5 text of CR only end-of-line correctly.
author Kenichi Handa <handa@m17n.org>
date Tue, 09 Dec 1997 04:12:03 +0000
parents a43789debf48
children 099812ea310f
files src/coding.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Dec 09 04:12:03 1997 +0000
+++ b/src/coding.c	Tue Dec 09 04:12:03 1997 +0000
@@ -1928,6 +1928,8 @@
 		/* To process C2 again, SRC is subtracted by 1.  */
 		*dst++ = c1, src--;
 	    }
+	  else if (coding->eol_type == CODING_EOL_CR)
+	    *dst++ = '\n';
 	  else
 	    *dst++ = c1;
 	}
@@ -2329,7 +2331,7 @@
   coding->character_unification_table_for_decode = Qnil;
   coding->character_unification_table_for_encode = Qnil;
 
-  Vlast_coding_system_used = coding->symbol = coding_system;
+  coding->symbol = coding_system;
   eol_type = Qnil;
 
   /* Get values of property `coding-system' and `eol-type'.