aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
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);