On Fri, Jan 28, 2011 at 3:03 PM, Ben Fritz <[email protected]> wrote: > 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?
I remember trying to reproduce your described behavior when I first saw your mail but wasn't able to. Could you give a minimal set of steps along with the output that you're seeing for ":set enc? fenc? fencs?" in each of the different cases? -- James GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]> -- 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
