From 733f0a286e03159c362a835bb44334cd3f2bb91c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 2 Mar 2007 18:56:27 +0000 Subject: updated for version 7.0-206 --- src/mbyte.c | 1 - src/option.c | 8 ++++++++ src/version.c | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mbyte.c b/src/mbyte.c index 735bf6544..f508f8a1c 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -364,7 +364,6 @@ enc_alias_table[] = {"949", IDX_CP949}, {"936", IDX_CP936}, {"gbk", IDX_CP936}, - {"gb18030", IDX_CP936}, /* only 99% the same */ {"950", IDX_CP950}, {"eucjp", IDX_EUC_JP}, {"unix-jis", IDX_EUC_JP}, 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"); diff --git a/src/version.c b/src/version.c index c9508b969..caffda0fb 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 206, /**/ 205, /**/ -- cgit v1.2.3