]> git.eshelyaron.com Git - emacs.git/commitdiff
(setup_coding_system): Do not set
authorKenichi Handa <handa@m17n.org>
Tue, 9 Dec 1997 04:12:03 +0000 (04:12 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 9 Dec 1997 04:12:03 +0000 (04:12 +0000)
Vlast_coding_system_used here.
(decode_coding_sjis_big5): Decode Big5 text of CR only end-of-line
correctly.

src/coding.c

index ad73f5d2dbd96a13883c75ad3e8b0bdcf719f19e..e6417d66b1b1d1d5e4d4cf044e48d1fb8f542767 100644 (file)
@@ -1928,6 +1928,8 @@ decode_coding_sjis_big5 (coding, source, destination,
                /* 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 @@ setup_coding_system (coding_system, coding)
   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'.