1 ?RCS: $Id: ebcdic.U 1 2006-08-24 12:32:52Z rmanfredi $
3 ?RCS: Copyright (c) 1991-1997, 2004-2006, Raphael Manfredi
5 ?RCS: You may redistribute only under the terms of the Artistic Licence,
6 ?RCS: as specified in the README file that comes with the distribution.
7 ?RCS: You may reuse parts of this distribution only within the terms of
8 ?RCS: that same Artistic Licence; a copy of which may be found at the root
9 ?RCS: of the source tree for dist 4.0.
11 ?RCS: Copyright (c) 1998 Andy Dougherty
13 ?RCS: Original author Jarkko Hietaniemi <jhi@iki.fi>
14 ?RCS: Merged into dist by Andy Dougherty July 13, 1998
16 ?MAKE:ebcdic: Compile Setvar cat rm run
17 ?MAKE: -pick add $@ %<
19 ?S: This variable conditionally defines EBCDIC if this
20 ?S: system uses EBCDIC encoding. Among other things, this
21 ?S: means that the character ranges are not contiguous.
25 ?C: This symbol, if defined, indicates that this system uses
28 ?H:#$ebcdic EBCDIC /**/
32 : look whether system uses EBCDIC
34 echo "Determining whether or not we are on an EBCDIC system..." >&4
38 if ('M'==0xd4) return 0;
44 if eval $compile_ok; then
46 echo "You seem to speak EBCDIC." >&4
49 echo "Nope, no EBCDIC, probably ASCII or some ISO Latin. Or UTF-8." >&4
52 echo "I'm unable to compile the test program." >&4
53 echo "I'll assume ASCII or some ISO Latin. Or UTF8." >&4