(encode_coding_emacs_mule): Be sure to set `code'.

This commit is contained in:
Kenichi Handa 2008-12-03 06:35:02 +00:00
parent 97c07afc0f
commit 905ca9d212

View file

@ -2449,8 +2449,10 @@ encode_coding_emacs_mule (coding)
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);