xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/casefold_test.ref (revision e262b48e47fe8540a73d8e342df0cdad4a0c5cf5)
1> # Ignored when not running as root.
2> chroot /tmp
3> # Casefold U+0000 .. U+10FFFF excluding surrogates.
4> range 0x0 0xD7FF
5range completed: 0x0..0xd7ff
6> range 0xD800 0xD800
7skipping surrogate range
8range completed: 0xd800..0xd800
9> range 0xDFFF 0xDFFF
10skipping surrogate range
11range completed: 0xdfff..0xdfff
12> range 0xE000 0x10FFFF
13range completed: 0xe000..0x10ffff
14> # Demonstrate that range is not a noop.
15> verbose 1
16> range 0xE000 0xE007
17U+E000 -> 
18U+E001 -> 
19U+E002 -> 
20U+E003 -> 
21U+E004 -> 
22U+E005 -> 
23U+E006 -> 
24U+E007 -> 
25range completed: 0xe000..0xe007
26> verbose 0
27> # Upper-case greek -> lower-case greek.
28> fold Δημοσθένους.example.com
29"Δημοσθένους.example.com" ->fold "δημοσθένουσ.example.com"
30> # Exact-fit null termination test.
31> fold Δημοσθένους.exxample.com
32"Δημοσθένους.exxample.com" ->fold "δημοσθένουσ.exxample.com"
33> # Upper-case ASCII -> lower-case ASCII.
34> fold HeLlO.ExAmPlE.CoM
35"HeLlO.ExAmPlE.CoM" ->fold "hello.example.com"
36> # Folding does not change aliases for '.'.
37> fold x。example.com
38"x。example.com" ->fold "x。example.com"
39> fold x.example.com
40"x.example.com" ->fold "x.example.com"
41> fold x。example.com
42"x。example.com" ->fold "x。example.com"
43> # Bad UTF-8
44> fold YYY���
45"YYY���" ->fold "yyy���"
46> fold ���XXX
47"���XXX" ->fold "���xxx"
48