xref: /freebsd/contrib/dialog/samples/testdata-8bit (revision 43a5ec4eb41567cc92586503212743d89686d78f)
1#!/bin/sh
2# $Id: testdata-8bit,v 1.2 2011/10/16 23:26:32 tom Exp $
3
4# Select one of the "SAMPLE=" lines, to test handling of characters which
5# are nonprinting in a POSIX locale:
6
7case .$1 in
8	# C1 controls
9.8)
10	SAMPLE="����������������"
11	;;
12.9)
13	SAMPLE="����������������"
14	;;
15
16# Latin-1
17.[aA])
18	SAMPLE="����������������"
19	;;
20.[bB])
21	SAMPLE="����������������"
22	;;
23.[cC])
24	SAMPLE="����������������"
25	;;
26.[dD])
27	SAMPLE="����������������"
28	;;
29.[eE])
30	SAMPLE="����������������"
31	;;
32.[fF])
33	SAMPLE="����������������"
34	;;
35*)
36	# C0 controls (except a few which are always treated specially by curses):
37	SAMPLE=""
38	;;
39esac
40
41# This script is source'd from other scripts, and uses the parameter list from
42# those explicitly.  But they may use the parameter list later, to set options
43# specially for dialog.  Work around the conflicting uses by removing the
44# parameter which we just used to select a set of data.
45if test $# != 0
46then
47	shift 1
48fi
49