Björn Linse wrote:

> ":set all&" might change &encoding without reexecuting "mb_init()", if 
> encoding was changed earlier from the locale default, leaving multibyte 
> handling in inconsistent state.
> 
> To reproduce (assuming utf-8 locale):
> vim -u NONE --cmd "set enc=latin1"
> 
> Inside vim, type ":set all&", now ":set enc" shows "utf-8", but vim still 
> behaves as if enc=latin1, and by running inside gdb and "break mb_init", it 
> is confirmed that mb_init wasn't reexecuted.
> 
> Earlier discussion: 
> https://github.com/neovim/neovim/pull/2929#issuecomment-128849173

Thanks for reporting this.  I suppose the solution would not be
difficult, just cal mb_init() in this situation.

-- 
Sorry, no fortune today.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui