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