From owner-freebsd-hackers Fri Feb 2 23:53:25 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from jason.argos.org (a1-3b044.neo.rr.com [24.93.181.44]) by hub.freebsd.org (Postfix) with ESMTP id 53F3F37B401 for ; Fri, 2 Feb 2001 23:53:08 -0800 (PST) Received: from localhost (mike@localhost) by jason.argos.org (8.10.1/8.10.1) with ESMTP id f137gbs00793; Sat, 3 Feb 2001 02:42:37 -0500 Date: Sat, 3 Feb 2001 02:42:37 -0500 (EST) From: Mike Nowlin To: Garance A Drosihn Cc: jgrosch@mooseriver.com, hackers@FreeBSD.ORG Subject: Re: EBCDIC -> ASCII In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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