# HG changeset patch # User Kenichi Handa # Date 885991045 0 # Node ID 13d0a6194de7749d868c70af7b7a4ebc9e275886 # Parent b2af60896559823c85cc4fe7d4bada2684eb37d5 (DECODE_SJIS_BIG5_CHARACTER): Don't have to increase coding->produced_char here. (code_convert_region): Initialize LEN_BYTE correctly. diff -r b2af60896559 -r 13d0a6194de7 src/coding.c --- a/src/coding.c Wed Jan 28 12:37:25 1998 +0000 +++ b/src/coding.c Wed Jan 28 12:37:25 1998 +0000 @@ -2026,7 +2026,6 @@ DECODE_CHARACTER_DIMENSION1 (charset_alt, c1); \ else \ DECODE_CHARACTER_DIMENSION2 (charset_alt, c1, c2); \ - coding->produced_char++; \ } while (0) #define ENCODE_SJIS_BIG5_CHARACTER(charset, c1, c2) \ @@ -3838,7 +3837,7 @@ to = from + len; } from_byte = CHAR_TO_BYTE (from); to_byte = CHAR_TO_BYTE (to); - len_byte = from_byte - to_byte; + len_byte = to_byte - from_byte; if (! encodep && CODING_REQUIRE_DETECTION (coding)) {