> At 1:33 PM -0800 1/29/01, Josef Grosch wrote:
> >Does anybody know of an EBCDIC to ASCII converter? I thought
> >that at one time FreeBSD had one of these.
> 
> Note there are multiple ideas of what it means to be EBCDIC.
> Alphanumerics stay the same between them, of course, but a
> few of the special characters (braces, brackets, accent-grave)
> move around.

Unfortunately, I have to deal with an application written in EDX (go try
and find info on THAT archaic language!) on an IBM RS/6000 that uses
EBCDIC...  After digging through the sources on that machine, I was able
to come up with a somewhat decent translation table.  It's not complete,
but it handles the alphanum and punctuation characters.

I just stuck it up at http://www.argos.org/~mike/ebc2asc.c

(It's just a test program - you'll need to modify it a little bit to
handle "normal" stuff, but that's fairly simple.)

(Suggestions to improve the translation table are welcome.)

mike




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to