diff --git a/7.0.178 b/7.0.178 new file mode 100644 index 0000000..3a28649 --- /dev/null +++ b/7.0.178 @@ -0,0 +1,52 @@ +To: vim-dev@vim.org +Subject: patch 7.0.178 +Fcc: outbox +From: Bram Moolenaar +Mime-Version: 1.0 +Content-Type: text/plain; charset=ISO-8859-1 +Content-Transfer-Encoding: 8bit +------------ + +Patch 7.0.178 +Problem: When 'enc' is "utf-8" and 'ignorecase' is set the result of ":echo + ("\xe4" == "\xe4")" varies. +Solution: In mb_strnicmp() avoid looking past NUL bytes. +Files: src/mbyte.c + + +*** ../vim-7.0.177/src/mbyte.c Wed Nov 1 18:10:36 2006 +--- src/mbyte.c Tue Dec 5 22:04:34 2006 +*************** +*** 2294,2301 **** +--- 2294,2307 ---- + } + /* Check directly first, it's faster. */ + for (j = 0; j < l; ++j) ++ { + if (s1[i + j] != s2[i + j]) + break; ++ if (s1[i + j] == 0) ++ /* Both stings have the same bytes but are incomplete or ++ * have illegal bytes, accept them as equal. */ ++ l = j; ++ } + if (j < l) + { + /* If one of the two characters is incomplete return -1. */ +*** ../vim-7.0.177/src/version.c Tue Dec 5 21:45:20 2006 +--- src/version.c Tue Dec 5 22:08:08 2006 +*************** +*** 668,669 **** +--- 668,671 ---- + { /* Add new patch number below this line */ ++ /**/ ++ 178, + /**/ + +-- +Trees moving back and forth is what makes the wind blow. + + /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ +/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ +\\\ download, build and distribute -- http://www.A-A-P.org /// + \\\ help me help AIDS victims -- http://ICCF-Holland.org /// diff --git a/README.patches b/README.patches index ec66aa3..72c58ff 100644 --- a/README.patches +++ b/README.patches @@ -198,3 +198,13 @@ Individual patches for Vim 7.0: 1865 7.0.166 crash with cscope when a file descriptor is NULL 1942 7.0.167 can't redefine a function in a dictionary 2224 7.0.168 reading uninitialized memory and a memory leak in recovery + 1812 7.0.169 Visual block highlighting not removed for "I" and "A" + 2545 7.0.170 (extra) Win32: un-maximizing and tab pages line problem + 14457 7.0.171 (extra) VMS: problem with file names with multiple paths + 2389 7.0.172 crash when recovering a file and quitting hit-enter prompt + 1703 7.0.173 ":call f().TT()" doesn't work + 2838 7.0.174 ":mksession" doesn't restore tab page window layout properly + 1498 7.0.175 tr() didn't add a final NUL + 1781 7.0.176 ":emenu" isn't executed directly, breaks the crypt key prompt + 4292 7.0.177 key from mapping at press-enter prompt would be remapped + 1565 7.0.178 comparing utf-8 strings with 'ic' may look past NUL bytes