home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.0 / 7.0.178 < prev    next >
Encoding:
Internet Message Format  |  2006-12-04  |  1.5 KB

  1. To: vim-dev@vim.org
  2. Subject: patch 7.0.178
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=ISO-8859-1
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.0.178
  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.
  14. Files:        src/mbyte.c
  15.  
  16.  
  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
  19. ***************
  20. *** 2294,2301 ****
  21. --- 2294,2307 ----
  22.           }
  23.           /* Check directly first, it's faster. */
  24.           for (j = 0; j < l; ++j)
  25. +         {
  26.           if (s1[i + j] != s2[i + j])
  27.               break;
  28. +         if (s1[i + j] == 0)
  29. +             /* Both stings have the same bytes but are incomplete or
  30. +              * have illegal bytes, accept them as equal. */
  31. +             l = j;
  32. +         }
  33.           if (j < l)
  34.           {
  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
  38. ***************
  39. *** 668,669 ****
  40. --- 668,671 ----
  41.   {   /* Add new patch number below this line */
  42. + /**/
  43. +     178,
  44.   /**/
  45.  
  46. -- 
  47. Trees moving back and forth is what makes the wind blow.
  48.  
  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    ///
  53.