From: Bram Moolenaar Date: Fri, 29 Jul 2022 17:32:20 +0000 (+0100) Subject: patch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversed X-Git-Tag: v9.0.0106 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cb36c2a3cdd5610487dd830d430bf022f288328d;p=thirdparty%2Fvim.git patch 9.0.0106: illegal byte regexp test doesn't fail when fix is reversed Problem: Illegal byte regexp test doesn't fail when fix is reversed. Solution: Make sure illegal bytes end up in sourced script file. --- diff --git a/src/testdir/test_regexp_utf8.vim b/src/testdir/test_regexp_utf8.vim index e7672ddd86..d665a6f0be 100644 --- a/src/testdir/test_regexp_utf8.vim +++ b/src/testdir/test_regexp_utf8.vim @@ -563,12 +563,8 @@ func Test_match_invalid_byte() endfunc func Test_match_illegal_byte() - let lines =<< trim END - silent! buffer ÿ\c - next ÿ - 0scriptnames - source - END + " Text has illegal bytes which need to be set explicitly + let lines = ["norm :set no\x01\", "silent n\xff", "silent norm :b\xff\"] call writefile(lines, 'Xregexp') call system(GetVimCommand() .. ' -X -Z -e -s -S Xregexp -c qa!') diff --git a/src/version.c b/src/version.c index 6593e5957e..44ee33f7cf 100644 --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 106, /**/ 105, /**/