On Thursday, September 13, 2012 9:54:02 AM UTC-5, Ben Fritz wrote:
> On Thursday, September 13, 2012 9:51:24 AM UTC-5, ZyX wrote:
> 
> > четверг, 13 сентября 2012 г., 10:05:16 UTC+4 пользователь Jiri Sedlak 
> > написал:
> 
> > 
> 
> > > Hello,
> 
> > 
> 
> > > 
> 
> > 
> 
> > > Codepages are not re-coded by iconv but by MultiByteToWideChar
> 
> > 
> 
> > > function. So if you set cp... the iconv library is not loaded.
> 
> > 
> 
> > > SO was introduced in VIm7.3.034 so it is realy long time ago. But I
> 
> > 
> 
> > > needed open file in iso-8859-2 coding on Monday, so I came across it.
> 
> > 
> 
> > 
> 
> > 
> 
> > You must not be using this option for opening files with particular 
> > encoding, you corrupt any existing non-ASCII string already loaded in 
> > memory that way. There are enough pointers to a correct way of opening a 
> > file in ":h 'encoding'".
> 
> 
> 
> Regardless, Vim should not crash. When I reproduced it, the "set encoding" 
> command was the first thing done in a configuration-less Vim.
> 
> 
> 
> As for opening files "the right way", also see 
> http://vim.wikia.com/wiki/Working_with_Unicode

And also http://vim.wikia.com/wiki/Reloading_a_file_using_a_different_encoding 
and other links from that page.

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

Raspunde prin e-mail lui