diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-03-02 18:56:27 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-03-02 18:56:27 +0000 |
commit | 733f0a286e03159c362a835bb44334cd3f2bb91c (patch) | |
tree | 6643cdc23efe1eced764f092cff4d632dd5429d8 /src/option.c | |
parent | 33c4fb68bf0bdfbff1019c1c5b27c20edb4cb1b7 (diff) | |
download | vim-733f0a286e03159c362a835bb44334cd3f2bb91c.zip |
updated for version 7.0-206
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 0bd218c97..3be561206 100644 --- a/src/option.c +++ b/src/option.c @@ -3290,6 +3290,14 @@ set_init_1() * If not, go back to the default "latin1". */ save_enc = p_enc; p_enc = p; + if (STRCMP(p_enc, "gb18030") == 0) + { + /* We don't support "gb18030", but "cp936" is a good substitute + * for practical purposes, thus use that. It's not an alias to + * still support conversion between gb18030 and utf-8. */ + p_enc = vim_strsave((char_u *)"cp936"); + vim_free(p); + } if (mb_init() == NULL) { opt_idx = findoption((char_u *)"encoding"); |