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 / 6.0.152 < prev    next >
Encoding:
Internet Message Format  |  2002-01-24  |  1.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0.152
  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 6.0.152
  11. Problem:    strtrans() could hang on an illegal UTF-8 byte sequence.
  12. Solution:   Skip over illegal bytes. (Yasuhiro Matsumoto)
  13. Files:        src/charset.c
  14.  
  15.  
  16. *** ../vim60.151/src/charset.c    Mon Oct 22 12:52:35 2001
  17. --- src/charset.c    Fri Jan 25 10:02:37 2002
  18. ***************
  19. *** 347,353 ****
  20.           p += l;
  21.           }
  22.           else
  23. !         len += byte2cells(*p++);
  24.       }
  25.       res = alloc((unsigned)(len + 1));
  26.       }
  27. --- 347,359 ----
  28.           p += l;
  29.           }
  30.           else
  31. !         {
  32. !         l = byte2cells(*p++);
  33. !         if (l > 0)
  34. !             len += l;
  35. !         else
  36. !             ++len;    /* illegal byte sequence */
  37. !         }
  38.       }
  39.       res = alloc((unsigned)(len + 1));
  40.       }
  41. *** ../vim60.151/src/version.c    Thu Jan 24 13:47:03 2002
  42. --- src/version.c    Fri Jan 25 10:03:55 2002
  43. ***************
  44. *** 608,609 ****
  45. --- 608,611 ----
  46.   {   /* Add new patch number below this line */
  47. + /**/
  48. +     152,
  49.   /**/
  50.  
  51. -- 
  52. Time is money.  Especially if you make clocks.
  53.  
  54.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  55. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  56.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  57.