]>
Commit | Line | Data |
---|---|---|
71aad674 A |
1 | # $FreeBSD$ |
2 | ||
3 | unset LC_ALL | |
4 | LC_CTYPE=de_DE.ISO8859-1 | |
5 | export LC_CTYPE | |
6 | ||
7 | c1=e | |
8 | # o umlaut | |
9 | c2=$(printf '\366') | |
10 | # non-break space | |
11 | c3=$(printf '\240') | |
12 | c4=$(printf '\240') | |
13 | # $c2$c3$c4 form one utf-8 character | |
14 | ||
15 | ok=0 | |
16 | case $c1$c2$c3$c4 in | |
17 | *) ok=1 ;; | |
18 | esac | |
19 | if [ $ok = 0 ]; then | |
20 | echo wrong at $LINENO | |
21 | exit 3 | |
22 | fi | |
23 | ||
24 | case $c1$c2$c3$c4 in | |
25 | $c1$c2$c3$c4) ;; | |
26 | *) echo wrong at $LINENO ;; | |
27 | esac | |
28 | ||
29 | case $c1$c2$c3$c4 in | |
30 | "$c1$c2$c3$c4") ;; | |
31 | *) echo wrong at $LINENO ;; | |
32 | esac | |
33 | ||
34 | case $c1$c2$c3$c4 in | |
35 | ????) ;; | |
36 | *) echo wrong at $LINENO ;; | |
37 | esac | |
38 | ||
39 | case $c1$c2$c3$c4 in | |
40 | [!$c2][!b][!c][!d]) ;; | |
41 | *) echo wrong at $LINENO ;; | |
42 | esac | |
43 | ||
44 | case $c1$c2$c3$c4 in | |
45 | [$c1][$c2][$c3][$c4]) ;; | |
46 | *) echo wrong at $LINENO ;; | |
47 | esac | |
48 | ||
49 | case $c1$c2$c3$c4 in | |
50 | ["$c1"]["$c2"]["$c3"]["$c4"]) ;; | |
51 | *) echo wrong at $LINENO ;; | |
52 | esac |