On Jan 20, 10:03 pm, Ben Fritz <[email protected]> wrote:
> I have a file which if read with the Windows-1252 encoding (cp1252in
> Vim) has an en dash character (encoded as byte 150). When I load this
> file in a Vim with enc=latin1, and leave fenc blank, I would expect to
> see a "no character" block in place of the en dash. However, I see the
> en dash as if I loaded with enc/fenc set tocp1252.
>
> If I set encoding to utf-8, and load the same file with default
> fileencodings, it detects as latin1 and I see the "no character" glyph
> as expected. If I do :e ++enc=cp1252, or if I modify my fileencodings
> option to includecp1252instead of latin1, I see the en dash, again
> as expected.
>
> Is this behavior intentional? It certainly could be considered
> helpful, but it was very unexpected.

So, is this expected behavior? Are there special rules when Vim's
encoding is an 8-bit one?

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