Ivan Krasilnikov wrote: > On Wed, May 25, 2011 at 14:09, Bram Moolenaar <[email protected]> wrote: > > Yes, this code just returns -1, no matter if the first or second string > > is bigger. > > > > Your other remark about difference in byte length of a character is > > right, but it's not so easy to fix. =A0Can you suggest a patch? > > Preferably with a test. > > Hi, here's my patch for mbyte.c and a few testcases. > > I've eliminated those return -1's by doing a bytewise comparison of > strings after the first corrupted character. This should make the > comparisons transitive at least.
Thanks, I'll look into it soon. -- hundred-and-one symptoms of being an internet addict: 113. You are asked about a bus schedule, you wonder if it is 16 or 32 bits. /// 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
