84db51f8721684ac9e610ffc87d407f011379e6f
[jansson.git] / test / testdata / invalid-unicode
1 ==== lone-invalid-utf-8 ====
2 å
3 ====
4 -1
5 unable to decode byte 0xe5 at position 0
6 ==== invalid-utf-8-in-string ====
7 ["å <-- invalid UTF-8"]
8 ====
9 -1
10 unable to decode byte 0xe5 at position 2
11 ==== invalid-utf-8-in-array ====
12 [å]
13 ====
14 -1
15 unable to decode byte 0xe5 at position 1
16 ==== invalid-utf-8-in-identifier ====
17 [aå]
18 ====
19 -1
20 unable to decode byte 0xe5 at position 2
21 ==== invalid-utf-8-in-escape ====
22 ["\uå"]
23 ====
24 -1
25 unable to decode byte 0xe5 at position 4
26 ==== invalid-utf-8-after-backslash ====
27 ["\å"]
28 ====
29 -1
30 unable to decode byte 0xe5 at position 3
31 ==== invalid-utf-8-in-int ====
32 [0å]
33 ====
34 -1
35 unable to decode byte 0xe5 at position 2
36 ==== invalid-utf-8-in-bigger-int ====
37 [123å]
38 ====
39 -1
40 unable to decode byte 0xe5 at position 4
41 ==== invalid-utf-8-in-real-after-e ====
42 [1eå]
43 ====
44 -1
45 unable to decode byte 0xe5 at position 3
46 ==== invalid-utf-8-in-exponent ====
47 [1e1å]
48 ====
49 -1
50 unable to decode byte 0xe5 at position 4
51 ==== lone-utf-8-continuation-byte ====
52 ["\81"]
53 ====
54 -1
55 unable to decode byte 0x81 at position 2
56 ==== overlong-ascii-encoding ====
57 ["Á"]
58 ====
59 -1
60 unable to decode byte 0xc1 at position 2
61 ==== restricted-utf-8 ====
62 ["ý"]
63 ====
64 -1
65 unable to decode byte 0xfd at position 2
66 ==== not-in-unicode-range ====
67 [""]
68 ====
69 -1
70 unable to decode byte 0xf4 at position 2
71 ==== overlong-3-byte-encoding ====
72 ["à\80¢ <-- overlong encoding"]
73 ====
74 -1
75 unable to decode byte 0xe0 at position 2
76 ==== overlong-4-byte-encoding ====
77 ["ð\80\80¢ <-- overlong encoding"]
78 ====
79 -1
80 unable to decode byte 0xf0 at position 2
81 ==== truncated-utf-8 ====
82 ["àÿ <-- truncated UTF-8"]
83 ====
84 -1
85 unable to decode byte 0xe0 at position 2
86 ==== encoded-surrogate-half ====
87 [" <-- encoded surrogate half"]
88 ====
89 -1
90 unable to decode byte 0xed at position 2