dcaee6
To: vim_dev@googlegroups.com
dcaee6
Subject: Patch 7.4.032
dcaee6
Fcc: outbox
dcaee6
From: Bram Moolenaar <Bram@moolenaar.net>
dcaee6
Mime-Version: 1.0
dcaee6
Content-Type: text/plain; charset=UTF-8
dcaee6
Content-Transfer-Encoding: 8bit
dcaee6
------------
dcaee6
dcaee6
Patch 7.4.032
dcaee6
Problem:    NFA engine does not match the NUL character. (Jonathon Merz)
dcaee6
Solution:   Ues 0x0a instead of NUL. (Christian Brabandt)
dcaee6
Files:	    src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok
dcaee6
dcaee6
dcaee6
*** ../vim-7.4.031/src/regexp_nfa.c	2013-09-19 17:00:14.000000000 +0200
dcaee6
--- src/regexp_nfa.c	2013-09-22 13:53:46.000000000 +0200
dcaee6
***************
dcaee6
*** 1383,1390 ****
dcaee6
  			    EMSG2_RET_FAIL(
dcaee6
  			       _("E678: Invalid character after %s%%[dxouU]"),
dcaee6
  				    reg_magic == MAGIC_ALL);
dcaee6
  			/* TODO: what if a composing character follows? */
dcaee6
! 			EMIT(nr);
dcaee6
  		    }
dcaee6
  		    break;
dcaee6
  
dcaee6
--- 1383,1391 ----
dcaee6
  			    EMSG2_RET_FAIL(
dcaee6
  			       _("E678: Invalid character after %s%%[dxouU]"),
dcaee6
  				    reg_magic == MAGIC_ALL);
dcaee6
+ 			/* A NUL is stored in the text as NL */
dcaee6
  			/* TODO: what if a composing character follows? */
dcaee6
! 			EMIT(nr == 0 ? 0x0a : nr);
dcaee6
  		    }
dcaee6
  		    break;
dcaee6
  
dcaee6
*** ../vim-7.4.031/src/testdir/test64.in	2013-09-05 21:15:38.000000000 +0200
dcaee6
--- src/testdir/test64.in	2013-09-22 13:51:53.000000000 +0200
dcaee6
***************
dcaee6
*** 373,378 ****
dcaee6
--- 373,379 ----
dcaee6
  :call add(tl, [2, '\%x20', 'yes no', ' '])
dcaee6
  :call add(tl, [2, '\%u0020', 'yes no', ' '])
dcaee6
  :call add(tl, [2, '\%U00000020', 'yes no', ' '])
dcaee6
+ :call add(tl, [2, '\%d0', "yes\x0ano", "\x0a"])
dcaee6
  :"
dcaee6
  :""""" \%[abc]
dcaee6
  :call add(tl, [2, 'foo\%[bar]', 'fobar'])
dcaee6
*** ../vim-7.4.031/src/testdir/test64.ok	2013-09-05 21:15:38.000000000 +0200
dcaee6
--- src/testdir/test64.ok	2013-09-22 13:52:41.000000000 +0200
dcaee6
***************
dcaee6
*** 863,868 ****
dcaee6
--- 863,871 ----
dcaee6
  OK 0 - \%U00000020
dcaee6
  OK 1 - \%U00000020
dcaee6
  OK 2 - \%U00000020
dcaee6
+ OK 0 - \%d0
dcaee6
+ OK 1 - \%d0
dcaee6
+ OK 2 - \%d0
dcaee6
  OK 0 - foo\%[bar]
dcaee6
  OK 1 - foo\%[bar]
dcaee6
  OK 2 - foo\%[bar]
dcaee6
*** ../vim-7.4.031/src/version.c	2013-09-20 20:13:48.000000000 +0200
dcaee6
--- src/version.c	2013-09-22 13:56:45.000000000 +0200
dcaee6
***************
dcaee6
*** 740,741 ****
dcaee6
--- 740,743 ----
dcaee6
  {   /* Add new patch number below this line */
dcaee6
+ /**/
dcaee6
+     32,
dcaee6
  /**/
dcaee6
dcaee6
-- 
dcaee6
hundred-and-one symptoms of being an internet addict:
dcaee6
247. You use www.switchboard.com instead of dialing 411 and 555-12-12
dcaee6
     for directory assistance.
dcaee6
dcaee6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
dcaee6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
dcaee6
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
dcaee6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///