xref: /netbsd-src/external/ibm-public/postfix/dist/src/util/casefold_test.in (revision e262b48e47fe8540a73d8e342df0cdad4a0c5cf5)
1# Ignored when not running as root.
2chroot /tmp
3# Casefold U+0000 .. U+10FFFF excluding surrogates.
4range 0x0 0xD7FF
5range 0xD800 0xD800
6range 0xDFFF 0xDFFF
7range 0xE000 0x10FFFF
8# Demonstrate that range is not a noop.
9verbose 1
10range 0xE000 0xE007
11verbose 0
12# Upper-case greek -> lower-case greek.
13fold Δημοσθένους.example.com
14# Exact-fit null termination test.
15fold Δημοσθένους.exxample.com
16# Upper-case ASCII -> lower-case ASCII.
17fold HeLlO.ExAmPlE.CoM
18# Folding does not change aliases for '.'.
19fold x。example.com
20fold x.example.com
21fold x。example.com
22# Bad UTF-8
23fold YYY���
24fold ���XXX
25