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.3 / 7.3.982 < prev    next >
Encoding:
Internet Message Format  |  2013-05-20  |  2.7 KB

  1. To: vim_dev@googlegroups.com
  2. Subject: Patch 7.3.982
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.3.982
  11. Problem:    In the new regexp engine \p does not work on multi-byte
  12.         characters.
  13. Solution:   Don't point to an integer but the characters.
  14. Files:        src/regexp_nfa.c, src/testdir/test95.in, src/testdir/test95.ok
  15.  
  16.  
  17. *** ../vim-7.3.981/src/regexp_nfa.c    2013-05-20 22:19:58.000000000 +0200
  18. --- src/regexp_nfa.c    2013-05-21 12:34:02.000000000 +0200
  19. ***************
  20. *** 2931,2937 ****
  21.       }
  22.       if (c == NUL)
  23.           n = 0;
  24. !     cc = (char_u *)&c;
  25.   
  26.       /* swap lists */
  27.       thislist = &list[flag];
  28. --- 2931,2937 ----
  29.       }
  30.       if (c == NUL)
  31.           n = 0;
  32. !     cc = reginput;
  33.   
  34.       /* swap lists */
  35.       thislist = &list[flag];
  36. ***************
  37. *** 2960,2966 ****
  38.           if (neglist->n > 0)
  39.           {
  40.           t = &neglist->t[0];
  41. !         neglist->n --;
  42.           i--;
  43.           }
  44.           else
  45. --- 2960,2966 ----
  46.           if (neglist->n > 0)
  47.           {
  48.           t = &neglist->t[0];
  49. !         neglist->n--;
  50.           i--;
  51.           }
  52.           else
  53. *** ../vim-7.3.981/src/testdir/test95.in    2013-05-19 19:16:25.000000000 +0200
  54. --- src/testdir/test95.in    2013-05-21 12:24:56.000000000 +0200
  55. ***************
  56. *** 25,30 ****
  57. --- 25,33 ----
  58.   :call add(tl, [' [^ ]\+', 'start α╕íabcdα╕í ', ' α╕íabcdα╕í'])
  59.   :call add(tl, ['[α╕í[:alpha:][=a=]]\+', '879 aia├úα╕í├óα╕íaiuvna ', 'aia├úα╕í├óα╕íaiuvna'])
  60.   
  61. + :" this is not a normal "i" but 0xec
  62. + :call add(tl, ['\p\+', '├¼a', '├¼a'])
  63.   :"""" Run the tests
  64.   
  65.   :"
  66. *** ../vim-7.3.981/src/testdir/test95.ok    2013-05-19 19:16:25.000000000 +0200
  67. --- src/testdir/test95.ok    2013-05-21 12:31:00.000000000 +0200
  68. ***************
  69. *** 4,6 ****
  70. --- 4,7 ----
  71.   OK - [^α╕í ]\+
  72.   OK -  [^ ]\+
  73.   OK - [α╕í[:alpha:][=a=]]\+
  74. + OK - \p\+
  75. *** ../vim-7.3.981/src/version.c    2013-05-21 00:02:54.000000000 +0200
  76. --- src/version.c    2013-05-21 12:32:41.000000000 +0200
  77. ***************
  78. *** 730,731 ****
  79. --- 730,733 ----
  80.   {   /* Add new patch number below this line */
  81. + /**/
  82. +     982,
  83.   /**/
  84.  
  85. -- 
  86. ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY
  87.                   KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T
  88.                   HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR
  89.                   LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER),
  90.                   BROTHER MAYNARD
  91.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  92.  
  93.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  94. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  95. \\\  an exciting new programming language -- http://www.Zimbu.org        ///
  96.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  97.