Re: Encoding recognizing problem with 2 byte BOM FF FE

2008-11-01 Fir de Conversatie Bram Moolenaar
Yanwei wrote: For a 2 byte BOM FF FE, ucs-2le is used, which doesn't work for little-endian UTF-16 text. Like the patch 7.1.261, the only difference is the byte order. And I have also writen a patch for Vim-7.2.025: Looks good, thanks. I'll include it. -- hundred-and-one symptoms of

Re: Encoding recognizing problem with 2 byte BOM FF FE

2008-10-18 Fir de Conversatie Tony Mechelynck
On 18/10/08 10:41, JiaYanwei wrote: For a 2 byte BOM FF FE, ucs-2le is used, which doesn't work for little-endian UTF-16 text. Like the patch 7.1.261, the only difference is the byte order. And I have also writen a patch for Vim-7.2.025: I confirm that Vim 7.2.25 with 'fencs' starting in

Encoding recognizing problem with 2 byte BOM FF FE

2008-10-18 Fir de Conversatie JiaYanwei
For a 2 byte BOM FF FE, ucs-2le is used, which doesn't work for little-endian UTF-16 text. Like the patch 7.1.261, the only difference is the byte order. And I have also writen a patch for Vim-7.2.025: *** ../vim-7.2.025/src/fileio.c Wed Oct 15 15:09:56 2008 --- src/fileio.cSat Oct 18 

Re:Re: Encoding recognizing problem with 2 byte BOM FF FE

2008-10-18 Fir de Conversatie JiaYanwei
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+ are

Re: Encoding recognizing problem with 2 byte BOM FF FE

2008-10-18 Fir de Conversatie David Kotchan
JiaYanwei wrote: For a 2 byte BOM FF FE, ucs-2le is used, which doesn't work for little-endian UTF-16 text. Like the patch 7.1.261, the only difference is the byte order. And I have also writen a patch for Vim-7.2.025: *** ../vim-7.2.025/src/fileio.c Wed Oct 15 15:09:56 2008 ---