diff options
| author | Kenichi Handa | 2008-12-03 06:35:02 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-12-03 06:35:02 +0000 |
| commit | 905ca9d2127e4f00ee2f936c22f98474a140000d (patch) | |
| tree | aa7e10e9affde3c37fbae0daf02208603a9abd66 /src/coding.c | |
| parent | 97c07afc0fde63933a42c5e3563a9ad74b0096a5 (diff) | |
| download | emacs-905ca9d2127e4f00ee2f936c22f98474a140000d.tar.gz emacs-905ca9d2127e4f00ee2f936c22f98474a140000d.zip | |
(encode_coding_emacs_mule): Be sure to set `code'.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index 8890eb188ce..ff0e5b0643e 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -2449,8 +2449,10 @@ encode_coding_emacs_mule (coding) | |||
| 2449 | if (preferred_charset_id >= 0) | 2449 | if (preferred_charset_id >= 0) |
| 2450 | { | 2450 | { |
| 2451 | charset = CHARSET_FROM_ID (preferred_charset_id); | 2451 | charset = CHARSET_FROM_ID (preferred_charset_id); |
| 2452 | if (! CHAR_CHARSET_P (c, charset)) | 2452 | if (CHAR_CHARSET_P (c, charset)) |
| 2453 | charset = char_charset (c, charset_list, NULL); | 2453 | code = ENCODE_CHAR (charset, c); |
| 2454 | else | ||
| 2455 | charset = char_charset (c, charset_list, &code); | ||
| 2454 | } | 2456 | } |
| 2455 | else | 2457 | else |
| 2456 | charset = char_charset (c, charset_list, &code); | 2458 | charset = char_charset (c, charset_list, &code); |