Edward L. Fox wrote:

> Sorry for sending this mail for the second time because my previous
> mail with attachment was rejected by the mail daemon. :-(
> 
> On 8/11/06, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> >
> > [...]
> >
> > The menu.vim file should never change 'encoding'.  It should load menus
> > that are appropriate for the current 'encoding' and language.
> 
> But gvim doesn't support an encoding named 'gbk'. If the system
> encoding is 'gbk', the menu and toolbar get malformed.

What do you mean by "system encoding"?  How does Vim see this?

> In the past two by "system encoding"?  How does Vim see this?  years
> (or more), all gvim users in mainland China should add the following
> two lines in their .vimrc if they are using Linux with GBK encoding:
> 
> set enc=cp936
> so $VIMRUNTIME/delmenu.vim
> so $VIMRUNTIME/menu.vim
> 
> That's why I had wanted to change the encoding value in menu.vim. :-)
> 
> > If the intention is to have the default for 'encoding' use something
> > specific in $LANG then this must be done in enc_locale() in src/mbyte.c
> 
> I modified mbyte.c, added "gbk" as an alias of "cp936", then the
> menubar was displayed properly with the unmodified menu.vim. But there
> is still some problem with the toolbar - every last character of the
> tooltip becomes two question marks. I'm trying to debug the code and
> will send you another patch as soon as I solve the problem. Hope you
> can offer me some hints, too. :-)

You may have uncovered a bug that went unnoticed so far.  Please try to
discover what causes this problem.  I can't guess why the last character
is messed up, looks strange.

-- 
hundred-and-one symptoms of being an internet addict:
115. You are late picking up your kid from school and try to explain
     to the teacher you were stuck in Web traffic.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to