diff options
| author | Yuuki Harano | 2021-04-06 00:11:36 +0900 |
|---|---|---|
| committer | Yuuki Harano | 2021-04-06 00:11:36 +0900 |
| commit | 8c7453632e8f45ed65ce814eafc0a1af637774c1 (patch) | |
| tree | a7248619441ffb6a77a81a7b76ade2b7294f7719 /src/coding.c | |
| parent | 5d2f319eec33fea2cb29a02210952ee590b4b21b (diff) | |
| parent | 0342354c155728f8d55005bd34a66e1ab3179cc7 (diff) | |
| download | emacs-8c7453632e8f45ed65ce814eafc0a1af637774c1.tar.gz emacs-8c7453632e8f45ed65ce814eafc0a1af637774c1.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs into feature/pgtk
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/coding.c b/src/coding.c index 739dd6adcb5..46e7fca0f43 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -7799,7 +7799,13 @@ encode_coding (struct coding_system *coding) | |||
| 7799 | coding_set_source (coding); | 7799 | coding_set_source (coding); |
| 7800 | consume_chars (coding, translation_table, max_lookup); | 7800 | consume_chars (coding, translation_table, max_lookup); |
| 7801 | coding_set_destination (coding); | 7801 | coding_set_destination (coding); |
| 7802 | /* The CODING_MODE_LAST_BLOCK flag should be set only for the last | ||
| 7803 | iteration of the encoding. */ | ||
| 7804 | unsigned saved_mode = coding->mode; | ||
| 7805 | if (coding->consumed_char < coding->src_chars) | ||
| 7806 | coding->mode &= ~CODING_MODE_LAST_BLOCK; | ||
| 7802 | (*(coding->encoder)) (coding); | 7807 | (*(coding->encoder)) (coding); |
| 7808 | coding->mode = saved_mode; | ||
| 7803 | } while (coding->consumed_char < coding->src_chars); | 7809 | } while (coding->consumed_char < coding->src_chars); |
| 7804 | 7810 | ||
| 7805 | if (BUFFERP (coding->dst_object) && coding->produced_char > 0) | 7811 | if (BUFFERP (coding->dst_object) && coding->produced_char > 0) |