Yasuhiro Matsumoto wrote:

> Bram. you seems removed this issue from todo list.
> But I'm thinking merging patch above is better than keeps current status.
> 
> There is two problems.
> 
> 1. diff.vim contains several encodings. So if DBCS is used on vim, vim
> may handle invalid-characters.
> 2. locale message of svn is encoded to system locale encoding. So it's
> not match as vim's encoding.
> 
> The first of those problems will be fixed with my patch.
> To fix the second of the problems, I suggest removing syntax of
> 'diffOnly' for multi-byte encodings.

If I remember correctly, your patch breaks recognizing diff headers if
the text does not match the current locale.  E.g., when my locale is
German and I edit a diff file generated by someone in Italy, I still
expect the headers to be recognized.

When the file's encoding differs from what Vim has detected then all
bets are off, it will be impossible to compare the text correctly.
Unless we have a regexp that works around it, it's probably very
difficult.

What is the error that is reported when using a DBCS encoding?
A reproducible example is useful.

-- 
FATHER:    You killed eight wedding guests in all!
LAUNCELOT: Er, Well ... the thing is ... I thought your son was a lady.
FATHER:    I can understand that.
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui