1 ?RCS: $Id: ebcdic.U,v 3.0.1.3 1994/05/06 15:11:49 doughera Exp $
3 ?RCS: Copyright (c) 1998 Andy Dougherty
5 ?RCS: You may distribute under the terms of either the GNU General Public
6 ?RCS: License or the Artistic License, as specified in the README file.
8 ?RCS: Original author Jarkko Hietaniemi <jhi@iki.fi>
9 ?RCS: Merged into dist by Andy Dougherty July 13, 1998
11 ?MAKE:ebcdic: Compile Setvar cat rm_try run
12 ?MAKE: -pick add $@ %<
14 ?S: This variable conditionally defines EBCDIC if this
15 ?S: system uses EBCDIC encoding. Among other things, this
16 ?S: means that the character ranges are not contiguous.
20 ?C: This symbol, if defined, indicates that this system uses
23 ?H:#$ebcdic EBCDIC /**/
27 : Determine if this is an EBCDIC system
29 echo "Determining whether or not we are on an EBCDIC system..." >&4
33 if ('M'==0xd4) return 0;
40 if eval $compile_ok; then
42 echo "You seem to speak EBCDIC." >&4
45 echo "Nope, no EBCDIC, probably ASCII or some ISO Latin. Or UTF-8." >&4
48 echo "I'm unable to compile the test program." >&4
49 echo "I'll assume ASCII or some ISO Latin. Or UTF8." >&4