File: encoding002.stdout

package info (click to toggle)
ghc 8.0.1-17
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 55,080 kB
  • ctags: 9,332
  • sloc: haskell: 363,120; ansic: 54,900; sh: 4,782; makefile: 974; perl: 542; asm: 315; python: 306; xml: 154; lisp: 7
file content (61 lines) | stat: -rw-r--r-- 1,335 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
== UTF-8: roundtripping
[72,105,237,178,128,33]
"Hi\56557\56498\56448!"
[72,105,237,178,128,33]
True

== UTF-8: decoding
"recoverDecode: invalid argument (invalid byte sequence)"
"Hi!"
"Hi\65533\65533\65533!"
"Hi\56557\56498\56448!"
== UTF-8: encoding
[]
[72,105,33]
[72,105,63,33]
[72,105,128,33]

== UTF-16LE: decoding
"recoverDecode: invalid argument (invalid byte sequence)"
"Hi\65503\8671"
"Hi\65533\65503\8671\65533"
"Hi\56575\65503\8671\NUL"
== UTF-16LE: encoding
[]
[72,0,105,0,33,0]
[72,0,105,0,63,0,33,0]
[72,0,105,0,128,33,0]

== UTF-16BE: decoding
"recoverDecode: invalid argument (invalid byte sequence)"
"Hi\65503\65280"
"Hi\65533\65503\65280\65533"
"Hi\56543\65503\65280!"
== UTF-16BE: encoding
[]
[0,72,0,105,0,33]
[0,72,0,105,0,63,0,33]
[0,72,0,105,128,0,33]

== UTF-32LE: decoding
"recoverDecode: invalid argument (invalid byte sequence)"
"Hi\8448"
"Hi\65533\65533\65533\8448\65533"
"Hi\56557\56498\56448\8448\NUL"
== UTF-32LE: encoding
[]
[72,0,0,0,105,0,0,0,33,0,0,0]
[72,0,0,0,105,0,0,0,63,0,0,0,33,0,0,0]
[72,0,0,0,105,0,0,0,128,33,0,0,0]

== UTF-32BE: decoding
"recoverDecode: invalid argument (invalid byte sequence)"
"Hi!"
"Hi\65533\65533\65533\65533!"
"Hi\NUL\56448\56498\56557!"
== UTF-32BE: encoding
[]
[0,0,0,72,0,0,0,105,0,0,0,33]
[0,0,0,72,0,0,0,105,0,0,0,63,0,0,0,33]
[0,0,0,72,0,0,0,105,128,0,0,0,33]