summaryrefslogtreecommitdiffstats
path: root/src/hardcopy.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-05-04 21:54:08 +0000
committerBram Moolenaar <Bram@vim.org>2006-05-04 21:54:08 +0000
commit14716817266007c373d5cc6ee2294416e3132be6 (patch)
tree17456d1f860cb89befc89c43a62e1459b0cec0c0 /src/hardcopy.c
parentfdc9f4904ea162e899df7859e7755c0253b47870 (diff)
updated for version 7.0g03
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index 60c5e83e6e..b00322d473 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -2507,12 +2507,13 @@ mch_print_init(psettings, jobname, forceit)
if (*p_encoding == NUL)
p_encoding = enc_skip(p_enc);
- /* Look for recognised multi-byte coding, and if the charset is recognised.
- * This is to cope with the fact that various unicode encodings are
- * supported in more than one of CJK. */
+ /* Look for a multi-byte font that matches the encoding and character set.
+ * Only look if multi-byte character set is defined, or using multi-byte
+ * encoding other than Unicode. This is because a Unicode encoding does not
+ * uniquely identify a CJK character set to use. */
p_mbenc = NULL;
props = enc_canon_props(p_encoding);
- if (!(props & ENC_8BIT) && (*p_penc != NUL || *p_pmcs != NUL))
+ if (!(props & ENC_8BIT) && ((*p_pmcs != NUL) || !(props & ENC_UNICODE)))
{
p_mbenc_first = NULL;
p_mbchar = NULL;