Tuesday, May 24, 2011

Re: [BUG] 'non-empty string' >? '' returns false on amd64 arch

+vim_dev@

On Tue, May 24, 2011 at 18:14, Ivan Krasilnikov <infnty@gmail.com> wrote:
> I confirm the problem. Looks like there's a bug in UTF-8 handling in
> function mb_strnicmp() in mbyte.c, specifically in the following "if"
> which was introduced by patch 7.3.040:
>
> /* Don't case-fold illegal bytes or truncated characters. */
> if (utf_ptr2len(s1 + i) < l || utf_ptr2len(s2 + i) < l)
>  return -1;
>
> The check "utf_ptr2len(s2 + i) < l" is wrong.

--
You received this message from the "vim_use" 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

No comments: