diff options
| author | Kenichi Handa | 1997-12-09 04:12:03 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1997-12-09 04:12:03 +0000 |
| commit | 774324d66c10879a99e34497245a1f1487032fb7 (patch) | |
| tree | ebbf473d9ad48d2e98b03d341018d688285c6ac8 /src/coding.c | |
| parent | 486b111b207abc002c60ffe53b51eb28b7f5c66e (diff) | |
| download | emacs-774324d66c10879a99e34497245a1f1487032fb7.tar.gz emacs-774324d66c10879a99e34497245a1f1487032fb7.zip | |
(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.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index ad73f5d2dbd..e6417d66b1b 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -1928,6 +1928,8 @@ decode_coding_sjis_big5 (coding, source, destination, | |||
| 1928 | /* To process C2 again, SRC is subtracted by 1. */ | 1928 | /* To process C2 again, SRC is subtracted by 1. */ |
| 1929 | *dst++ = c1, src--; | 1929 | *dst++ = c1, src--; |
| 1930 | } | 1930 | } |
| 1931 | else if (coding->eol_type == CODING_EOL_CR) | ||
| 1932 | *dst++ = '\n'; | ||
| 1931 | else | 1933 | else |
| 1932 | *dst++ = c1; | 1934 | *dst++ = c1; |
| 1933 | } | 1935 | } |
| @@ -2329,7 +2331,7 @@ setup_coding_system (coding_system, coding) | |||
| 2329 | coding->character_unification_table_for_decode = Qnil; | 2331 | coding->character_unification_table_for_decode = Qnil; |
| 2330 | coding->character_unification_table_for_encode = Qnil; | 2332 | coding->character_unification_table_for_encode = Qnil; |
| 2331 | 2333 | ||
| 2332 | Vlast_coding_system_used = coding->symbol = coding_system; | 2334 | coding->symbol = coding_system; |
| 2333 | eol_type = Qnil; | 2335 | eol_type = Qnil; |
| 2334 | 2336 | ||
| 2335 | /* Get values of property `coding-system' and `eol-type'. | 2337 | /* Get values of property `coding-system' and `eol-type'. |