4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: When 'enc' is "utf-8" and 'ignorecase' is set the result of ":echo
12 ("\xe4" == "\xe4")" varies.
13 Solution: In mb_strnicmp() avoid looking past NUL bytes.
17 *** ../vim-7.0.177/src/mbyte.c Wed Nov 1 18:10:36 2006
18 --- src/mbyte.c Tue Dec 5 22:04:34 2006
23 /* Check directly first, it's faster. */
24 for (j = 0; j < l; ++j)
26 if (s1[i + j] != s2[i + j])
29 + /* Both stings have the same bytes but are incomplete or
30 + * have illegal bytes, accept them as equal. */
35 /* If one of the two characters is incomplete return -1. */
36 *** ../vim-7.0.177/src/version.c Tue Dec 5 21:45:20 2006
37 --- src/version.c Tue Dec 5 22:08:08 2006
41 { /* Add new patch number below this line */
47 Trees moving back and forth is what makes the wind blow.
49 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
50 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
51 \\\ download, build and distribute -- http://www.A-A-P.org ///
52 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///