freebsd-nq/contrib/dialog/samples/testdata-8bit
Baptiste Daroussin 2a3e3873a1 Update dialog to 1.2-20130523
Level up WARNS
2013-06-17 10:28:55 +00:00

49 lines
959 B
Bash
Executable File
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# $Id: testdata-8bit,v 1.2 2011/10/16 23:26:32 tom Exp $
# Select one of the "SAMPLE=" lines, to test handling of characters which
# are nonprinting in a POSIX locale:
case .$1 in
# C1 controls
.8)
SAMPLE="€<>ƒ„…†‡ˆ‰ŠŒ<E280B9>Ž<EFBFBD>"
;;
.9)
SAMPLE="<22>“”•˜™šœ<E280BA>žŸ"
;;
# Latin-1
.[aA])
SAMPLE=" ¡¢£¤¥¦§¨©ª«¬­®¯"
;;
.[bB])
SAMPLE="°±²³´µ¶·¸¹º»¼½¾¿"
;;
.[cC])
SAMPLE="ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏ"
;;
.[dD])
SAMPLE="ÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞß"
;;
.[eE])
SAMPLE="àáâãäåæçèéêëìíîï"
;;
.[fF])
SAMPLE="ðñòóôõö÷øùúûüýþÿ"
;;
*)
# C0 controls (except a few which are always treated specially by curses):
SAMPLE=" "
;;
esac
# This script is source'd from other scripts, and uses the parameter list from
# those explicitly. But they may use the parameter list later, to set options
# specially for dialog. Work around the conflicting uses by removing the
# parameter which we just used to select a set of data.
if test $# != 0
then
shift 1
fi