2014-08-05 18:51:32 +02:00
|
|
|
|
# This set of tests is for UTF-8 support and Unicode property support, with
|
|
|
|
|
# relevance only for the 8-bit library.
|
|
|
|
|
|
2015-11-27 16:58:44 +01:00
|
|
|
|
# The next 4 patterns have UTF-8 errors
|
2015-09-16 18:49:48 +02:00
|
|
|
|
|
2014-08-05 18:51:32 +02:00
|
|
|
|
/[<5B>]/utf
|
|
|
|
|
|
|
|
|
|
/<2F>/utf
|
|
|
|
|
|
|
|
|
|
/<2F><><EFBFBD>xxx/utf
|
|
|
|
|
|
2015-11-27 16:58:44 +01:00
|
|
|
|
/Â<><C382><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>/utf
|
|
|
|
|
|
2015-09-16 18:49:48 +02:00
|
|
|
|
# Now test subjects
|
|
|
|
|
|
2014-08-05 18:51:32 +02:00
|
|
|
|
/badutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2014-11-23 19:38:38 +01:00
|
|
|
|
X\xdf
|
|
|
|
|
XX\xef
|
|
|
|
|
XXX\xef\x80
|
|
|
|
|
X\xf7
|
|
|
|
|
XX\xf7\x80
|
|
|
|
|
XXX\xf7\x80\x80
|
2014-08-05 18:51:32 +02:00
|
|
|
|
\xfb
|
|
|
|
|
\xfb\x80
|
|
|
|
|
\xfb\x80\x80
|
|
|
|
|
\xfb\x80\x80\x80
|
|
|
|
|
\xfd
|
|
|
|
|
\xfd\x80
|
|
|
|
|
\xfd\x80\x80
|
|
|
|
|
\xfd\x80\x80\x80
|
|
|
|
|
\xfd\x80\x80\x80\x80
|
|
|
|
|
\xdf\x7f
|
|
|
|
|
\xef\x7f\x80
|
|
|
|
|
\xef\x80\x7f
|
|
|
|
|
\xf7\x7f\x80\x80
|
|
|
|
|
\xf7\x80\x7f\x80
|
|
|
|
|
\xf7\x80\x80\x7f
|
|
|
|
|
\xfb\x7f\x80\x80\x80
|
|
|
|
|
\xfb\x80\x7f\x80\x80
|
|
|
|
|
\xfb\x80\x80\x7f\x80
|
|
|
|
|
\xfb\x80\x80\x80\x7f
|
|
|
|
|
\xfd\x7f\x80\x80\x80\x80
|
|
|
|
|
\xfd\x80\x7f\x80\x80\x80
|
|
|
|
|
\xfd\x80\x80\x7f\x80\x80
|
|
|
|
|
\xfd\x80\x80\x80\x7f\x80
|
|
|
|
|
\xfd\x80\x80\x80\x80\x7f
|
|
|
|
|
\xed\xa0\x80
|
|
|
|
|
\xc0\x8f
|
|
|
|
|
\xe0\x80\x8f
|
|
|
|
|
\xf0\x80\x80\x8f
|
|
|
|
|
\xf8\x80\x80\x80\x8f
|
|
|
|
|
\xfc\x80\x80\x80\x80\x8f
|
|
|
|
|
\x80
|
|
|
|
|
\xfe
|
|
|
|
|
\xff
|
|
|
|
|
|
|
|
|
|
/badutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2014-11-23 19:38:38 +01:00
|
|
|
|
XX\xfb\x80\x80\x80\x80
|
|
|
|
|
XX\xfd\x80\x80\x80\x80\x80
|
|
|
|
|
XX\xf7\xbf\xbf\xbf
|
2014-08-05 18:51:32 +02:00
|
|
|
|
|
|
|
|
|
/shortutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2014-11-23 19:38:38 +01:00
|
|
|
|
XX\xdf\=ph
|
|
|
|
|
XX\xef\=ph
|
|
|
|
|
XX\xef\x80\=ph
|
2014-08-05 18:51:32 +02:00
|
|
|
|
\xf7\=ph
|
|
|
|
|
\xf7\x80\=ph
|
|
|
|
|
\xf7\x80\x80\=ph
|
|
|
|
|
\xfb\=ph
|
|
|
|
|
\xfb\x80\=ph
|
|
|
|
|
\xfb\x80\x80\=ph
|
|
|
|
|
\xfb\x80\x80\x80\=ph
|
|
|
|
|
\xfd\=ph
|
|
|
|
|
\xfd\x80\=ph
|
|
|
|
|
\xfd\x80\x80\=ph
|
|
|
|
|
\xfd\x80\x80\x80\=ph
|
|
|
|
|
\xfd\x80\x80\x80\x80\=ph
|
|
|
|
|
|
|
|
|
|
/anything/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2014-11-23 19:38:38 +01:00
|
|
|
|
X\xc0\x80
|
|
|
|
|
XX\xc1\x8f
|
|
|
|
|
XXX\xe0\x9f\x80
|
2014-08-05 18:51:32 +02:00
|
|
|
|
\xf0\x8f\x80\x80
|
|
|
|
|
\xf8\x87\x80\x80\x80
|
|
|
|
|
\xfc\x83\x80\x80\x80\x80
|
|
|
|
|
\xfe\x80\x80\x80\x80\x80
|
|
|
|
|
\xff\x80\x80\x80\x80\x80
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\xf8\x88\x80\x80\x80
|
|
|
|
|
\xf9\x87\x80\x80\x80
|
|
|
|
|
\xfc\x84\x80\x80\x80\x80
|
|
|
|
|
\xfd\x83\x80\x80\x80\x80
|
|
|
|
|
\= Expect no match
|
2014-08-05 18:51:32 +02:00
|
|
|
|
\xc3\x8f
|
|
|
|
|
\xe0\xaf\x80
|
|
|
|
|
\xe1\x80\x80
|
|
|
|
|
\xf0\x9f\x80\x80
|
|
|
|
|
\xf1\x8f\x80\x80
|
|
|
|
|
\xf8\x88\x80\x80\x80\=no_utf_check
|
|
|
|
|
\xf9\x87\x80\x80\x80\=no_utf_check
|
|
|
|
|
\xfc\x84\x80\x80\x80\x80\=no_utf_check
|
|
|
|
|
\xfd\x83\x80\x80\x80\x80\=no_utf_check
|
2015-08-18 12:34:05 +02:00
|
|
|
|
|
|
|
|
|
# Similar tests with offsets
|
2014-08-05 18:51:32 +02:00
|
|
|
|
|
2015-08-18 12:34:05 +02:00
|
|
|
|
/badutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2015-08-18 12:34:05 +02:00
|
|
|
|
X\xdfabcd
|
|
|
|
|
X\xdfabcd\=offset=1
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2015-08-18 12:34:05 +02:00
|
|
|
|
X\xdfabcd\=offset=2
|
|
|
|
|
|
|
|
|
|
/(?<=x)badutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2015-08-18 12:34:05 +02:00
|
|
|
|
X\xdfabcd
|
|
|
|
|
X\xdfabcd\=offset=1
|
|
|
|
|
X\xdfabcd\=offset=2
|
|
|
|
|
X\xdfabcd\xdf\=offset=3
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
X\xdfabcd\=offset=3
|
2015-08-18 12:34:05 +02:00
|
|
|
|
|
|
|
|
|
/(?<=xx)badutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2015-08-18 12:34:05 +02:00
|
|
|
|
X\xdfabcd
|
|
|
|
|
X\xdfabcd\=offset=1
|
|
|
|
|
X\xdfabcd\=offset=2
|
|
|
|
|
X\xdfabcd\=offset=3
|
|
|
|
|
|
|
|
|
|
/(?<=xxxx)badutf/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2015-08-18 12:34:05 +02:00
|
|
|
|
X\xdfabcd
|
|
|
|
|
X\xdfabcd\=offset=1
|
|
|
|
|
X\xdfabcd\=offset=2
|
|
|
|
|
X\xdfabcd\=offset=3
|
|
|
|
|
X\xdfabc\xdf\=offset=6
|
|
|
|
|
X\xdfabc\xdf\=offset=7
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
X\xdfabcd\=offset=6
|
2015-08-18 12:34:05 +02:00
|
|
|
|
|
2014-08-05 18:51:32 +02:00
|
|
|
|
/\x{100}/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{1000}/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{10000}/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100000}/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{10ffff}/IB,utf
|
|
|
|
|
|
|
|
|
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B
|
|
|
|
|
|
|
|
|
|
/[\x{100}]/IB,utf
|
|
|
|
|
\x{100}
|
|
|
|
|
Z\x{100}
|
|
|
|
|
\x{100}Z
|
|
|
|
|
|
|
|
|
|
/[\xff]/IB,utf
|
|
|
|
|
>\x{ff}<
|
|
|
|
|
|
|
|
|
|
/[^\xff]/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}abc(xyz(?1))/IB,utf
|
|
|
|
|
|
|
|
|
|
/\777/I,utf
|
|
|
|
|
\x{1ff}
|
|
|
|
|
\777
|
|
|
|
|
|
|
|
|
|
/\x{100}+\x{200}/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}+X/IB,utf
|
|
|
|
|
|
|
|
|
|
/^[\QĀ\E-\QŐ\E/B,utf
|
|
|
|
|
|
|
|
|
|
# This tests the stricter UTF-8 check according to RFC 3629.
|
|
|
|
|
|
|
|
|
|
/X/utf
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect UTF-8 errors
|
2014-08-05 18:51:32 +02:00
|
|
|
|
\x{d800}
|
|
|
|
|
\x{da00}
|
|
|
|
|
\x{dfff}
|
|
|
|
|
\x{110000}
|
|
|
|
|
\x{2000000}
|
|
|
|
|
\x{7fffffff}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
|
|
|
|
\x{d800}\=no_utf_check
|
|
|
|
|
\x{da00}\=no_utf_check
|
|
|
|
|
\x{dfff}\=no_utf_check
|
|
|
|
|
\x{110000}\=no_utf_check
|
|
|
|
|
\x{2000000}\=no_utf_check
|
2014-08-05 18:51:32 +02:00
|
|
|
|
\x{7fffffff}\=no_utf_check
|
|
|
|
|
|
|
|
|
|
/(*UTF8)\x{1234}/
|
2015-09-16 18:49:48 +02:00
|
|
|
|
abcd\x{1234}pqr
|
2014-08-05 18:51:32 +02:00
|
|
|
|
|
|
|
|
|
/(*CRLF)(*UTF)(*BSR_UNICODE)a\Rb/I
|
|
|
|
|
|
|
|
|
|
/\h/I,utf
|
|
|
|
|
ABC\x{09}
|
|
|
|
|
ABC\x{20}
|
|
|
|
|
ABC\x{a0}
|
|
|
|
|
ABC\x{1680}
|
|
|
|
|
ABC\x{180e}
|
|
|
|
|
ABC\x{2000}
|
|
|
|
|
ABC\x{202f}
|
|
|
|
|
ABC\x{205f}
|
|
|
|
|
ABC\x{3000}
|
|
|
|
|
|
|
|
|
|
/\v/I,utf
|
|
|
|
|
ABC\x{0a}
|
|
|
|
|
ABC\x{0b}
|
|
|
|
|
ABC\x{0c}
|
|
|
|
|
ABC\x{0d}
|
|
|
|
|
ABC\x{85}
|
|
|
|
|
ABC\x{2028}
|
|
|
|
|
|
|
|
|
|
/\h*A/I,utf
|
|
|
|
|
CDBABC
|
|
|
|
|
|
|
|
|
|
/\v+A/I,utf
|
|
|
|
|
|
|
|
|
|
/\s?xxx\s/I,utf
|
|
|
|
|
|
|
|
|
|
/\sxxx\s/I,utf,tables=2
|
|
|
|
|
AB\x{85}xxx\x{a0}XYZ
|
|
|
|
|
AB\x{a0}xxx\x{85}XYZ
|
|
|
|
|
|
|
|
|
|
/\S \S/I,utf,tables=2
|
|
|
|
|
\x{a2} \x{84}
|
|
|
|
|
A Z
|
|
|
|
|
|
|
|
|
|
/a+/utf
|
|
|
|
|
a\x{123}aa\=offset=1
|
|
|
|
|
a\x{123}aa\=offset=3
|
|
|
|
|
a\x{123}aa\=offset=4
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect bad offset value
|
2014-08-05 18:51:32 +02:00
|
|
|
|
a\x{123}aa\=offset=6
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect bad UTF-8 offset
|
|
|
|
|
a\x{123}aa\=offset=2
|
|
|
|
|
\= Expect no match
|
|
|
|
|
a\x{123}aa\=offset=5
|
2014-08-05 18:51:32 +02:00
|
|
|
|
|
|
|
|
|
/\x{1234}+/Ii,utf
|
|
|
|
|
|
|
|
|
|
/\x{1234}+?/Ii,utf
|
|
|
|
|
|
|
|
|
|
/\x{1234}++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
|
/abc/utf,never_utf
|
|
|
|
|
|
|
|
|
|
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/IBi,utf
|
|
|
|
|
|
|
|
|
|
/A\x{391}\x{10427}\x{ff3a}\x{1fb0}/IB,utf
|
|
|
|
|
|
|
|
|
|
/AB\x{1fb0}/IB,utf
|
|
|
|
|
|
|
|
|
|
/AB\x{1fb0}/IBi,utf
|
|
|
|
|
|
|
|
|
|
/\x{401}\x{420}\x{421}\x{422}\x{423}\x{424}\x{425}\x{426}\x{427}\x{428}\x{429}\x{42a}\x{42b}\x{42c}\x{42d}\x{42e}\x{42f}/Ii,utf
|
|
|
|
|
\x{401}\x{420}\x{421}\x{422}\x{423}\x{424}\x{425}\x{426}\x{427}\x{428}\x{429}\x{42a}\x{42b}\x{42c}\x{42d}\x{42e}\x{42f}
|
|
|
|
|
\x{451}\x{440}\x{441}\x{442}\x{443}\x{444}\x{445}\x{446}\x{447}\x{448}\x{449}\x{44a}\x{44b}\x{44c}\x{44d}\x{44e}\x{44f}
|
|
|
|
|
|
|
|
|
|
/[ⱥ]/Bi,utf
|
|
|
|
|
|
|
|
|
|
/[^ⱥ]/Bi,utf
|
|
|
|
|
|
|
|
|
|
/\h/I
|
|
|
|
|
|
|
|
|
|
/\v/I
|
|
|
|
|
|
|
|
|
|
/\R/I
|
|
|
|
|
|
|
|
|
|
/[[:blank:]]/B,ucp
|
|
|
|
|
|
|
|
|
|
/\x{212a}+/Ii,utf
|
|
|
|
|
KKkk\x{212a}
|
|
|
|
|
|
|
|
|
|
/s+/Ii,utf
|
|
|
|
|
SSss\x{17f}
|
|
|
|
|
|
2014-08-06 11:35:11 +02:00
|
|
|
|
/\x{100}*A/IB,utf
|
|
|
|
|
A
|
|
|
|
|
|
|
|
|
|
/\x{100}*\d(?R)/IB,utf
|
|
|
|
|
|
|
|
|
|
/[Z\x{100}]/IB,utf
|
|
|
|
|
Z\x{100}
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{100}Z
|
|
|
|
|
|
|
|
|
|
/[z-\x{100}]/IB,utf
|
|
|
|
|
|
|
|
|
|
/[z\Qa-d]Ā\E]/IB,utf
|
|
|
|
|
\x{100}
|
|
|
|
|
Ā
|
|
|
|
|
|
|
|
|
|
/[ab\x{100}]abc(xyz(?1))/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}*\s/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}*\d/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}*\w/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}*\D/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}*\S/IB,utf
|
|
|
|
|
|
|
|
|
|
/\x{100}*\W/IB,utf
|
|
|
|
|
|
|
|
|
|
/[\x{105}-\x{109}]/IBi,utf
|
|
|
|
|
\x{104}
|
|
|
|
|
\x{105}
|
|
|
|
|
\x{109}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-08-06 11:35:11 +02:00
|
|
|
|
\x{100}
|
|
|
|
|
\x{10a}
|
|
|
|
|
|
|
|
|
|
/[z-\x{100}]/IBi,utf
|
|
|
|
|
Z
|
|
|
|
|
z
|
|
|
|
|
\x{39c}
|
|
|
|
|
\x{178}
|
|
|
|
|
|
|
|
|
|
|
\x{80}
|
|
|
|
|
\x{ff}
|
|
|
|
|
\x{100}
|
|
|
|
|
\x{101}
|
2015-09-16 18:49:48 +02:00
|
|
|
|
\= Expect no match
|
2014-08-06 11:35:11 +02:00
|
|
|
|
\x{102}
|
|
|
|
|
Y
|
|
|
|
|
y
|
|
|
|
|
|
|
|
|
|
/[z-\x{100}]/IBi,utf
|
|
|
|
|
|
|
|
|
|
/\x{3a3}B/IBi,utf
|
|
|
|
|
|
2014-11-12 17:57:56 +01:00
|
|
|
|
/abc/utf,replace=<3D>
|
2015-09-16 18:49:48 +02:00
|
|
|
|
abc
|
2014-11-12 17:57:56 +01:00
|
|
|
|
|
2015-11-01 18:31:48 +01:00
|
|
|
|
/(?<=(a)(?-1))x/I,utf
|
|
|
|
|
a\x80zx\=offset=3
|
|
|
|
|
|
2016-08-03 19:22:59 +02:00
|
|
|
|
/[\W\p{Any}]/B
|
|
|
|
|
abc
|
|
|
|
|
123
|
|
|
|
|
|
|
|
|
|
/[\W\pL]/B
|
|
|
|
|
abc
|
|
|
|
|
\= Expect no match
|
|
|
|
|
123
|
|
|
|
|
|
2016-10-26 18:59:22 +02:00
|
|
|
|
/(*:*++++++++++++''''''''''''''''''''+''+++'+++x+++++++++++++++++++++++++++++++++++(++++++++++++++++++++:++++++%++:''''''''''''''''''''''''+++++++++++++++++++++++++++++++++++++++++++++++++++++-++++++++k+++++++''''+++'+++++++++++++++++++++++''''++++++++++++':ƿ)/utf
|
|
|
|
|
|
2014-08-05 18:51:32 +02:00
|
|
|
|
# End of testinput10
|