On 05/07/2013 19:01, Bram Moolenaar wrote:

Mike Williams wrote:

Yet more casts to cope with results of STRLEN being assigned to a
smaller int.  Enjoy.

The diff is messed up. It says UTF-16 but that doesn't work...

Many apologies.  I recently switched to PowerShell from cmd.exe and
didn't realise that hg diff > file will generate a UTF16-LE file.  There
is some more discussion on the issue (for those still interested) here
(it is the second half of the posting):

http://nbevans.wordpress.com/tag/powershell/

Vim can edit a utf-16 file, but it showed up garbled.  As if a few bytes
were missing.

"showed up garbled" is not much of a bug report ;-) AFAICT the patch in UTF16-LE format came through ok, at least VIM shows it as I would expect it to be - see attached. FWIW the diff from the posting on google groups is in UTF-8. Both have a BOM - is the source of your garbling?

Mike
--
Speak softly, and weigh in at a hundred tons.

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

--- You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


<<attachment: diff.png>>

Raspunde prin e-mail lui