From owner-freebsd-hackers Wed Jan 31 11:38:12 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.100.7]) by hub.freebsd.org (Postfix) with ESMTP id 2CC8837B491 for ; Wed, 31 Jan 2001 11:37:53 -0800 (PST) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.9.3/8.9.3) with ESMTP id OAA234090; Wed, 31 Jan 2001 14:37:44 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200101311642.f0VGgXv06307@iguana.aciri.org> References: <200101311642.f0VGgXv06307@iguana.aciri.org> Date: Wed, 31 Jan 2001 14:37:43 -0500 To: Luigi Rizzo From: Garance A Drosihn Subject: Re: EBCDIC -> ASCII Cc: jgrosch@mooseriver.com, hackers@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 8:42 AM -0800 1/31/01, Luigi Rizzo wrote: > > 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. > >isn't so for ASCII chars >128 as well ? yes, but ACSII has most characters that you care about < 128. For instance, C-programs will probably be unhappy if you get the wrong translation on curly-braces "{}", and perl programs will probably be unhappy if you get the wrong translation on square-brackets "[]". Most versions of ascii have those in the same place, while the various versions of ebcdic move those characters around. Now, it's perfectly reasonable to try 'dd's conversion, and see if that works for you. But if it doesn't, then rummage around thru the ports collection, and see if there's something there that knows about the different versions of ebcdic. It seems to me that I came across those once. -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message