need EBCDIC to ASCII function

Melinda Shore shore at mtxinu.COM
Mon Oct 16 04:12:07 AEST 1989


In article <10946 at riks.csl.sony.co.jp> diamond at csl.sony.co.jp (Norman
Diamond) writes:

>  In fact EBCDIC is just as well-defined as ASCII.  Only some IBM print
>  trains did not use EBCDIC.  "dd" provides an alternative table so that
>  certain characters will print properly on those printers, but that
>  target code is not EBCDIC.  Also IBM terminals usually did not use
>  EBCDIC, so the operating system had to translate to and from the
>  device codes.

Not entirely true.  To the extent that EBCDIC is defined it is multiply
defined;  my handy-dandy 370 architecture reference card from IBM has
two EBCDIC translation charts.  Also, the protocol converters used to
allow the use of ASCII RS-232 terminals with IBM-ish mainframes typically
support several character translation tables, selectable by the user or
system programmer (ours were selected by typing ^a then some single-
digit integer from the user keyboard - imagine the problems THAT caused).

Also, I wouldn't say that IBM terminals "usually" did not use EBCDIC.
Perhaps you mean that most academic sites choose to use ASCII terminals
through protocol converters?  That's certainly not the way of the rest
of the world.
-- 
Melinda Shore                                     shore at mtxinu.com
Mt Xinu                                  ..!uunet!mtxinu.com!shore



More information about the Comp.lang.c mailing list