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