diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2015-08-18 10:34:05 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2015-08-18 10:34:05 +0000 |
commit | e4b2532cb5204ede16f39aca7c63a97ff380094b (patch) | |
tree | 3215cf19e650395e5c828932d38dacc1fc076a05 /testdata/testoutput10 | |
parent | 060fab17340fc4b8615bc4ee486f269ed8b799c8 (diff) | |
download | pcre2-e4b2532cb5204ede16f39aca7c63a97ff380094b.tar.gz |
Runtime UTF checks now take not of the starting offset.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@348 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testoutput10')
-rw-r--r-- | testdata/testoutput10 | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testdata/testoutput10 b/testdata/testoutput10 index ef248db..89b4d36 100644 --- a/testdata/testoutput10 +++ b/testdata/testoutput10 @@ -235,7 +235,55 @@ No match No match \xfd\x83\x80\x80\x80\x80\=no_utf_check No match + +# Similar tests with offsets + +/badutf/utf + X\xdfabcd +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=1 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=2 +No match +/(?<=x)badutf/utf + X\xdfabcd +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=1 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=2 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=3 +No match + X\xdfabcd\xdf\=offset=3 +Failed: error -3: UTF-8 error: 1 byte missing at end at offset 6 + +/(?<=xx)badutf/utf + X\xdfabcd +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=1 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=2 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=3 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + +/(?<=xxxx)badutf/utf + X\xdfabcd +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=1 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=2 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=3 +Failed: error -8: UTF-8 error: byte 2 top bits not 0x80 at offset 1 + X\xdfabcd\=offset=6 +No match + X\xdfabc\xdf\=offset=6 +Failed: error -3: UTF-8 error: 1 byte missing at end at offset 5 + X\xdfabc\xdf\=offset=7 +Failed: error -33: bad offset value + /\x{100}/IB,utf ------------------------------------------------------------------ Bra |