comparison src/coding.c @ 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 86455974b971
children 46114a72fb0e
comparison
equal deleted inserted replaced
100175:be17c10d7381 100176:5706ca7c3d02
2447 unsigned char leading_codes[2]; 2447 unsigned char leading_codes[2];
2448 2448
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);
2457 if (! charset) 2459 if (! charset)
2458 { 2460 {