At 08:57 AM 3/24/03 -0500, you wrote:
<Snipped>
>What's the matter with the kernel source, Peter?  It shows that, yes,

>it uses code pages 037 and 500.  It looks like 037 for the 3215 and
>3270 console and 500 for the integrated system console (037 if
running
>on VM). All conversions are to 437 (based on commentary).
>
>http://lxr.linux.no/source/drivers/s390/ebcdic.c?a=s390#L70 and
>http://lxr.linux.no/source/arch/s390/kernel/ebcdic.c?a=s390#L91 were
>starting points for my search.

Thanks for those references, Alan.  As to why not the kernel source,
that's because I haven't got the foggiest clue where to begin looking
in the code.  A kernel hacker I'm not.  In fact, I've never even looked
at the kernel source, much less read the kernel hackers guides that are
out there.

Too scared of getting lost, I think. That water is very, very deep.

I notice, though, that the translations on the page you point out are
not symmetrical.  In particular, the ascii->ebcdic translate table
converts ascii square brackets (x'5B', x'5D') to ebcdic x'AD' and
x'BD', but the ebcdic->ascii translation presumes square brackets are
at x'BA' and x'BB', and translates those characters to ascii x'5B' and
x'5D' respectively.  x'AD' and x'BD' both translate to ascii x'07'.

Any idea why that is so?  Shouldn't those tables be symmetrical?
---------------------------------------------------------
Peter J. Farley III ([EMAIL PROTECTED])

Reply via email to