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