]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/dialog/samples/testdata-8bit
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / dialog / samples / testdata-8bit
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
7 case .$1 in
8         # C1 controls
9 .8)
10         SAMPLE="\80\81\82\83\84\85\86\87\88\89\8a\8b\8c\8d\8e\8f"
11         ;;
12 .9)
13         SAMPLE="\90\91\92\93\94\95\96\97\98\99\9a\9b\9c\9d\9e\9f"
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="\ 1\ 2\ 3\ 4\ 5\ 6\a\v\f\ e\ f\10\11\12\13\14\15\16\17\18\19\1a"
38         ;;
39 esac
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.
45 if test $# != 0
46 then
47         shift 1
48 fi