]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/regression/bin/sh/builtins/case7.0
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / regression / bin / sh / builtins / case7.0
1 # $FreeBSD$
2
3 # Character ranges in a locale other than the POSIX locale, not specified
4 # by POSIX.
5
6 unset LC_ALL
7 LC_CTYPE=de_DE.ISO8859-1
8 export LC_CTYPE
9 LC_COLLATE=de_DE.ISO8859-1
10 export LC_COLLATE
11
12 c1=e
13 # o umlaut
14 c2=$(printf '\366')
15
16 case $c1$c2 in
17 [a-z][a-z]) ;;
18 *) echo wrong at $LINENO ;;
19 esac
20
21 case $c1$c2 in
22 [a-f][n-p]) ;;
23 *) echo wrong at $LINENO ;;
24 esac