xref: /freebsd/bin/sh/tests/builtins/case7.0 (revision 61e21613)
1
2# Character ranges in a locale other than the POSIX locale, not specified
3# by POSIX.
4
5unset LC_ALL
6LC_CTYPE=de_DE.ISO8859-1
7export LC_CTYPE
8LC_COLLATE=de_DE.ISO8859-1
9export LC_COLLATE
10
11c1=e
12# o umlaut
13c2=$(printf '\366')
14
15case $c1$c2 in
16[a-z][a-z]) ;;
17*) echo wrong at $LINENO ;;
18esac
19
20case $c1$c2 in
21[a-f][n-p]) ;;
22*) echo wrong at $LINENO ;;
23esac
24