DervishD wrote:
>     Hi Yongwei :)
> 
>  * Yongwei Wu <[EMAIL PROTECTED]> dixit:
>> On 17/10/2007, Ben Schmidt <[EMAIL PROTECTED]> wrote:
>>> Note that because of this buggy behaviour, Vim's default value for
>>> fencs is non-sensical: it will always succeed when it gets to utf-8
>>> when enc=utf-8 without trying default or latin1, even if the file is
>>> invalid as utf-8.
>> This is not true.  In fact, if the file contains "señor" instead of
>> "ññ", Vim does resort to Latin1.  This said, Vim's failure here does
>> sound like a bug.  But I would like to hear from Bram first.
> 
> Exactly! I was just testing with some kind of corner case. "ññ" was the
> first thing I wrote fast and it stayed for my tests!. If I use "ññ " all
> works OK. Looks like the file must be longer than two bytes or vim gets
> confused.
> 
> I have to make again all my tests. First quick'n'dirty test is correct:
> doing "cat file | vim -" shows the characters correctly if the file is
> longer than two bytes (not taking into account line endings).
> 
> Thanks a lot for pointing!
> 
>     Raúl Núñez de Arenas Coronado
> 

Tip:

        vim - <file

is equivalent to

        cat file | vim -

and executes one less program.


Best regards,
Tony.
-- 
Nondeterminism means never having to say you are wrong.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui