2015-08-22 17:04 GMT+03:00 Bram Moolenaar <[email protected]>:
>
> 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.

I would not say so. Changing &encoding after startup breaks all
non-ASCII strings which were already read, thus I would rather suggest
to make it an exception and not set &encoding on set all&.

>
> --
> 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.

-- 
-- 
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