Mercurial > emacs
changeset 100176:5706ca7c3d02
(encode_coding_emacs_mule): Be sure to set `code'.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 03 Dec 2008 06:35:02 +0000 |
parents | be17c10d7381 |
children | 5a223111838e |
files | src/coding.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/coding.c Wed Dec 03 06:16:18 2008 +0000 +++ b/src/coding.c Wed Dec 03 06:35:02 2008 +0000 @@ -2449,8 +2449,10 @@ if (preferred_charset_id >= 0) { charset = CHARSET_FROM_ID (preferred_charset_id); - if (! CHAR_CHARSET_P (c, charset)) - charset = char_charset (c, charset_list, NULL); + if (CHAR_CHARSET_P (c, charset)) + code = ENCODE_CHAR (charset, c); + else + charset = char_charset (c, charset_list, &code); } else charset = char_charset (c, charset_list, &code);