diff options
| author | Kenichi Handa | 2002-03-11 11:28:41 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2002-03-11 11:28:41 +0000 |
| commit | 71c8142642c6d74af67b1b99642881a79fccee97 (patch) | |
| tree | ead8009d1e1a758fb6fd7fb57b6cad43c90a4aa8 /src | |
| parent | 85779cf5b729a963dc708131232b9c1a6963c20e (diff) | |
| download | emacs-71c8142642c6d74af67b1b99642881a79fccee97.tar.gz emacs-71c8142642c6d74af67b1b99642881a79fccee97.zip | |
(produce_chars): Set the variable `multibytep' correctly.
(decode_coding_gap): Set coding->dst_multibyte correctly.
Diffstat (limited to 'src')
| -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 60b2d3658c9..bbfa9daaef1 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5092,7 +5092,6 @@ produce_chars (coding) | |||
| 5092 | } | 5092 | } |
| 5093 | else | 5093 | else |
| 5094 | { | 5094 | { |
| 5095 | int multibytep = coding->src_multibyte; | ||
| 5096 | unsigned char *src = coding->source; | 5095 | unsigned char *src = coding->source; |
| 5097 | unsigned char *src_end = src + coding->src_bytes; | 5096 | unsigned char *src_end = src + coding->src_bytes; |
| 5098 | Lisp_Object eol_type; | 5097 | Lisp_Object eol_type; |
| @@ -5103,6 +5102,7 @@ produce_chars (coding) | |||
| 5103 | { | 5102 | { |
| 5104 | if (coding->src_multibyte) | 5103 | if (coding->src_multibyte) |
| 5105 | { | 5104 | { |
| 5105 | int multibytep = 1; | ||
| 5106 | int consumed_chars; | 5106 | int consumed_chars; |
| 5107 | 5107 | ||
| 5108 | while (1) | 5108 | while (1) |
| @@ -5141,6 +5141,7 @@ produce_chars (coding) | |||
| 5141 | else | 5141 | else |
| 5142 | while (src < src_end) | 5142 | while (src < src_end) |
| 5143 | { | 5143 | { |
| 5144 | int multibytep = 1; | ||
| 5144 | int c = *src++; | 5145 | int c = *src++; |
| 5145 | 5146 | ||
| 5146 | if (c == '\r') | 5147 | if (c == '\r') |
| @@ -5706,6 +5707,7 @@ decode_coding_gap (coding, chars, bytes) | |||
| 5706 | coding->dst_object = coding->src_object; | 5707 | coding->dst_object = coding->src_object; |
| 5707 | coding->dst_pos = PT; | 5708 | coding->dst_pos = PT; |
| 5708 | coding->dst_pos_byte = PT_BYTE; | 5709 | coding->dst_pos_byte = PT_BYTE; |
| 5710 | coding->dst_multibyte = ! NILP (current_buffer->enable_multibyte_characters); | ||
| 5709 | 5711 | ||
| 5710 | if (CODING_REQUIRE_DETECTION (coding)) | 5712 | if (CODING_REQUIRE_DETECTION (coding)) |
| 5711 | detect_coding (coding); | 5713 | detect_coding (coding); |