diff options
| author | Kenichi Handa | 2001-02-08 23:29:44 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2001-02-08 23:29:44 +0000 |
| commit | d280ccb69e196576b092883a3af010ba248243f6 (patch) | |
| tree | f543e1861347a7d0f795e49acf401187be4926ec /src | |
| parent | 19c92c942631226b74a3ff9d2a3516022a90195f (diff) | |
| download | emacs-d280ccb69e196576b092883a3af010ba248243f6.tar.gz emacs-d280ccb69e196576b092883a3af010ba248243f6.zip | |
(code_convert_region): After detecting a coding, if
nothing found, set coding->composing to COMPOSITION_NO.
(decode_coding_string): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coding.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c index 250977eb5f2..d344527b1d2 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5356,6 +5356,10 @@ code_convert_region (from, from_byte, to, to_byte, coding, encodep, replace) | |||
| 5356 | encodings again in vain. */ | 5356 | encodings again in vain. */ |
| 5357 | coding->type = coding_type_emacs_mule; | 5357 | coding->type = coding_type_emacs_mule; |
| 5358 | coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE; | 5358 | coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE; |
| 5359 | /* As emacs-mule decoder will handle composition, we | ||
| 5360 | need this setting to allocate coding->cmp_data | ||
| 5361 | later. */ | ||
| 5362 | coding->composing = COMPOSITION_NO; | ||
| 5359 | } | 5363 | } |
| 5360 | } | 5364 | } |
| 5361 | if (coding->eol_type == CODING_EOL_UNDECIDED | 5365 | if (coding->eol_type == CODING_EOL_UNDECIDED |
| @@ -5808,7 +5812,14 @@ decode_coding_string (str, coding, nocopy) | |||
| 5808 | { | 5812 | { |
| 5809 | detect_coding (coding, XSTRING (str)->data, to_byte); | 5813 | detect_coding (coding, XSTRING (str)->data, to_byte); |
| 5810 | if (coding->type == coding_type_undecided) | 5814 | if (coding->type == coding_type_undecided) |
| 5811 | coding->type = coding_type_emacs_mule; | 5815 | { |
| 5816 | coding->type = coding_type_emacs_mule; | ||
| 5817 | coding->category_idx = CODING_CATEGORY_IDX_EMACS_MULE; | ||
| 5818 | /* As emacs-mule decoder will handle composition, we | ||
| 5819 | need this setting to allocate coding->cmp_data | ||
| 5820 | later. */ | ||
| 5821 | coding->composing = COMPOSITION_NO; | ||
| 5822 | } | ||
| 5812 | } | 5823 | } |
| 5813 | if (coding->eol_type == CODING_EOL_UNDECIDED | 5824 | if (coding->eol_type == CODING_EOL_UNDECIDED |
| 5814 | && coding->type != coding_type_ccl) | 5825 | && coding->type != coding_type_ccl) |