xref: /freebsd/contrib/dialog/samples/testdata-8bit (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
14c8945a0SNathan Whitehorn#!/bin/sh
2*2a3e3873SBaptiste Daroussin# $Id: testdata-8bit,v 1.2 2011/10/16 23:26:32 tom Exp $
34c8945a0SNathan Whitehorn
44c8945a0SNathan Whitehorn# Select one of the "SAMPLE=" lines, to test handling of characters which
54c8945a0SNathan Whitehorn# are nonprinting in a POSIX locale:
64c8945a0SNathan Whitehorn
74c8945a0SNathan Whitehorncase .$1 in
84c8945a0SNathan Whitehorn	# C1 controls
94c8945a0SNathan Whitehorn.8)
104c8945a0SNathan Whitehorn	SAMPLE="����������������"
114c8945a0SNathan Whitehorn	;;
124c8945a0SNathan Whitehorn.9)
134c8945a0SNathan Whitehorn	SAMPLE="����������������"
144c8945a0SNathan Whitehorn	;;
154c8945a0SNathan Whitehorn
164c8945a0SNathan Whitehorn# Latin-1
174c8945a0SNathan Whitehorn.[aA])
184c8945a0SNathan Whitehorn	SAMPLE="����������������"
194c8945a0SNathan Whitehorn	;;
204c8945a0SNathan Whitehorn.[bB])
214c8945a0SNathan Whitehorn	SAMPLE="����������������"
224c8945a0SNathan Whitehorn	;;
234c8945a0SNathan Whitehorn.[cC])
244c8945a0SNathan Whitehorn	SAMPLE="����������������"
254c8945a0SNathan Whitehorn	;;
264c8945a0SNathan Whitehorn.[dD])
274c8945a0SNathan Whitehorn	SAMPLE="����������������"
284c8945a0SNathan Whitehorn	;;
294c8945a0SNathan Whitehorn.[eE])
304c8945a0SNathan Whitehorn	SAMPLE="����������������"
314c8945a0SNathan Whitehorn	;;
324c8945a0SNathan Whitehorn.[fF])
334c8945a0SNathan Whitehorn	SAMPLE="����������������"
344c8945a0SNathan Whitehorn	;;
354c8945a0SNathan Whitehorn*)
364c8945a0SNathan Whitehorn	# C0 controls (except a few which are always treated specially by curses):
374c8945a0SNathan Whitehorn	SAMPLE=""
384c8945a0SNathan Whitehorn	;;
394c8945a0SNathan Whitehornesac
40*2a3e3873SBaptiste Daroussin
41*2a3e3873SBaptiste Daroussin# This script is source'd from other scripts, and uses the parameter list from
42*2a3e3873SBaptiste Daroussin# those explicitly.  But they may use the parameter list later, to set options
43*2a3e3873SBaptiste Daroussin# specially for dialog.  Work around the conflicting uses by removing the
44*2a3e3873SBaptiste Daroussin# parameter which we just used to select a set of data.
45*2a3e3873SBaptiste Daroussinif test $# != 0
46*2a3e3873SBaptiste Daroussinthen
47*2a3e3873SBaptiste Daroussin	shift 1
48*2a3e3873SBaptiste Daroussinfi
49