On Feb 1, 9:50 am, Bram Moolenaar <[email protected]> wrote:
> Ben Fritz wrote:
> > On Jan 29, 6:46 am, Christian Brabandt <[email protected]> wrote:
> > > Hi Vlad!
>
> > > On Fr, 28 Jan 2011, Vlad Irnov wrote:
>
> > > > Vim apparently uses cp1252 instead of latin-1 for &enc. My
> > > > understanding is
> > > > that the only difference between them is that cp1252 has characters
> > > > for bytes
> > > > 128-159 while latin-1 uses them as control characters.
>
> > > Yes, if I read mbyte.c correctly, vim assumes cp1252 and uses this
> > > encoding for latin1 and iso8859-1
>
> > If this is true, I think the :help should mention it. As Vlad
> > mentions, this practice is fairly common so I don't think it will be
> > surprising to anyone as long as it is documented. I wonder though, if
> > pretending to be in latin1 but really being in cp1252 might cause more
> > headaches than it solves.
>
> I have added a remark in the help file.  The main reason to do this is
> that conversion between cp1252 and latin1 doesn't really work, thus
> naming them differently would cause lots of conversion errors.
>

Converting from cp1252 to latin1 should fail depending on the
characters in the file, but latin1 to cp1252 should always work,
shouldn't it? I understand cp1252 to be a superset of latin1. Is it
because the system mis-represents its encoding to Vim as latin1 when
really it is cp1252 or something?

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