Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Feb 2001 02:42:37 -0500 (EST)
From:      Mike Nowlin <mike@argos.org>
To:        Garance A Drosihn <drosih@rpi.edu>
Cc:        jgrosch@mooseriver.com, hackers@FreeBSD.ORG
Subject:   Re: EBCDIC -> ASCII
Message-ID:  <Pine.LNX.4.21.0102030213510.32347-100000@jason.argos.org>
In-Reply-To: <p05010402b69def9d2ac4@[128.113.24.47]>

next in thread | previous in thread | raw e-mail | index | archive | help

> 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.21.0102030213510.32347-100000>