Hi all,

On 2/26/07, Yongwei Wu <[EMAIL PROTECTED]> wrote:
Hi Bram,

On 2/26/07, Yongwei Wu <[EMAIL PROTECTED]> wrote:
> Hi Bram,
>
> My test shows when I use ++enc to open a file in GB18030, Vim uses
> CP936, which is not correct. GB18030 is a 1, 2, or 4 byte encoding,
> while CP936 is a 1 or 2 byte encoding. The iconv on my system works
> correctly.
>
> I test with gVim 7.0.201 on Windows XP.

The problem is in Patch 58:

+     {"gbk",           IDX_CP936},
+     {"gb18030",               IDX_CP936},     /* only 99% the same */

I made the patch. And I knew that GB18030 and GBK is not the same.
Actually it's easy to support GB18030 well. And in most of the cases,
few people use the characters included in GB18030 and excluded in GBK.
So I suggest that these people could use UTF-8 to edit the files and
convert the file to GB18030 later on.

If anybody can offer a patch that makes vim support GB18030 perfectly,
it is highly appreciated.

If somebody specifically says a file is in GB18030, it is NOT GBK then.

Best regards,

Yongwei

--
Wu Yongwei
URL: http://wyw.dcweb.cn/


Regards,

Edward L. Fox

Reply via email to