aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa1998-01-28 12:37:25 +0000
committerKenichi Handa1998-01-28 12:37:25 +0000
commit8cbbac75ae105e0cfd48d7e78008652732c3c549 (patch)
tree19a346861e7a6d9e32c60c9c9b5f76cfcde79a84 /src
parent0f56470d73b8ddc7e38d73f8a936848b638eb825 (diff)
downloademacs-8cbbac75ae105e0cfd48d7e78008652732c3c549.tar.gz
emacs-8cbbac75ae105e0cfd48d7e78008652732c3c549.zip
(DECODE_SJIS_BIG5_CHARACTER): Don't have to increase
coding->produced_char here. (code_convert_region): Initialize LEN_BYTE correctly.
Diffstat (limited to 'src')
-rw-r--r--src/coding.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 60bfed358a7..2417c2558b8 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -2026,7 +2026,6 @@ encode_coding_iso2022 (coding, source, destination, src_bytes, dst_bytes)
2026 DECODE_CHARACTER_DIMENSION1 (charset_alt, c1); \ 2026 DECODE_CHARACTER_DIMENSION1 (charset_alt, c1); \
2027 else \ 2027 else \
2028 DECODE_CHARACTER_DIMENSION2 (charset_alt, c1, c2); \ 2028 DECODE_CHARACTER_DIMENSION2 (charset_alt, c1, c2); \
2029 coding->produced_char++; \
2030 } while (0) 2029 } while (0)
2031 2030
2032#define ENCODE_SJIS_BIG5_CHARACTER(charset, c1, c2) \ 2031#define ENCODE_SJIS_BIG5_CHARACTER(charset, c1, c2) \
@@ -3838,7 +3837,7 @@ code_convert_region (from, to, coding, encodep, adjust)
3838 to = from + len; 3837 to = from + len;
3839 } 3838 }
3840 from_byte = CHAR_TO_BYTE (from); to_byte = CHAR_TO_BYTE (to); 3839 from_byte = CHAR_TO_BYTE (from); to_byte = CHAR_TO_BYTE (to);
3841 len_byte = from_byte - to_byte; 3840 len_byte = to_byte - from_byte;
3842 3841
3843 if (! encodep && CODING_REQUIRE_DETECTION (coding)) 3842 if (! encodep && CODING_REQUIRE_DETECTION (coding))
3844 { 3843 {