summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:55:45 +0000
committerchpe <chpe@2f5784b3-3f2a-0410-8824-cb99058d5e15>2012-10-16 15:55:45 +0000
commit979dbda8ef7124bd03fd6387e8a9707aa6342e83 (patch)
tree60040652bcc325e112b1b07cccd2aeaa01179c8c /testdata
parentee7e6420e7e2e1c24f902c0a3b21b8e8bece769a (diff)
downloadpcre-979dbda8ef7124bd03fd6387e8a9707aa6342e83.tar.gz
pcre32: tests: Use \x?? escapes to create invalid UTF-8
Make test input data lines be UTF-8; so to construct invalid UTF-8 sequences \x?? escapes must be used. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1089 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput158
-rw-r--r--testdata/testoutput158
2 files changed, 8 insertions, 8 deletions
diff --git a/testdata/testinput15 b/testdata/testinput15
index 48e1b03..eea9902 100644
--- a/testdata/testinput15
+++ b/testdata/testinput15
@@ -50,10 +50,10 @@
/ÃÃÃxxx/8?DZSS
/abc/8
- Ã]
- Ã
- ÃÃÃ
- ÃÃÃ\?
+ \xc3]
+ \xc3
+ \xc3\xc3\xc3
+ \xc3\xc3\xc3\?
\xe1\x88
\P\xe1\x88
\P\P\xe1\x88
diff --git a/testdata/testoutput15 b/testdata/testoutput15
index d859c99..5cd5367 100644
--- a/testdata/testoutput15
+++ b/testdata/testoutput15
@@ -85,13 +85,13 @@ First char = \x{c3}
Need char = 'x'
/abc/8
- Ã]
+ \xc3]
Error -10 (bad UTF-8 string) offset=0 reason=6
- Ã
+ \xc3
Error -10 (bad UTF-8 string) offset=0 reason=1
- ÃÃÃ
+ \xc3\xc3\xc3
Error -10 (bad UTF-8 string) offset=0 reason=6
- ÃÃÃ\?
+ \xc3\xc3\xc3\?
No match
\xe1\x88
Error -10 (bad UTF-8 string) offset=0 reason=1