Hello Tony,

Thanks for your helpful suggestion.
By the way, wish Bram a wonderful holiday.

on 2008-10-18 18:18:45, Tony Mechelynck wrote: 
>I confirm that Vim 7.2.25 with 'fencs' starting in "ucs-bom" identifies 
>UTF-16le files with BOM as if they were UCS-2le, even if codepoints 
>above U+FFFF are present, which is an error. For instance U+20025 is 
>read back as  (two surrogates shown as distinct characters) 
>instead of as one double-wide character.
>
>Bram, there's work for you when you're back from holiday :-). I'm not 
>competent to check the proposed patch by eyeball but I hope it does what 
>is needed.
>
>Yanwei, in the meantime I suggest the following autocommand (untested) 
>as a workaround which doesn't need recompilation:
>
>       au BufReadPost * if (&fenc == 'ucs-2le')  &&  &bomb
>               \ | e ++enc=utf-16le | endif
>

Best regards,
Yanwei. 

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

Raspunde prin e-mail lui