diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-05-04 21:54:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-05-04 21:54:08 +0000 |
commit | 14716817266007c373d5cc6ee2294416e3132be6 (patch) | |
tree | 17456d1f860cb89befc89c43a62e1459b0cec0c0 /src/hardcopy.c | |
parent | fdc9f4904ea162e899df7859e7755c0253b47870 (diff) | |
download | vim-git-14716817266007c373d5cc6ee2294416e3132be6.tar.gz |
updated for version 7.0g03
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r-- | src/hardcopy.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c index 60c5e83e6..b00322d47 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; |