On May 16, 12:37 am, Dan Espen <
des...@verizon.net> wrote:
> > Yes, of course I know something as bleedingly obvious
> > as that. Do you really think I know how to interpret a
> > hex dump of a zip file, but yet am so stupid that I
> > don't know the difference between text and binary
> > file transfers?
>
> I have no idea what level of technical prowess you possess.
> I didn't follow the IBM-MAIN discussion in detail, just
> noted that many of the characters seemed to be in the EBCDIC range in
> one case and ASCII in another.
Yes, that's the nature of a zipped file on the mainframe.
Things like the "PK" at the start of a zip file are
required to be in ASCII (even on an EBCDIC machine), as
it is part of the specs. But there is an area of the
zip file where "extensions" are allowed, and the format
of this allows EBCDIC, and pkzip is designed to put an
EBCDIC "Z390" in that spot (as an example). So that's
why the file starts life with both ASCII and EBCDIC
characters in it.
And what I received at the end was the ASCII characters
intact, as far as I can see, but the (known) EBCDIC
characters with the high bit stripped.
> > What I'm interested in is what conversion
> > (starting from an EBCDIC zip file) would result in
> > the data characteristics I have shown above.
>
> The high bit would get lost going from an 8 bit code to 7 bit ASCII.
A translation from 8-bit EBCDIC to 7-bit ASCII should have
converted the EBCDIC "Z390" correctly. And then reversed
it correctly had the reverse been done.
But yeah, 8-bit ASCII to 7-bit ASCII may have simply chopped
off the high bit.
> I agree that at least 2 things seem to be going on. No idea
> what PKZIP would do to the data.
PKZIP preserves data, so that's not the culprit. That is
where the (zip) file's life starts.
BFN. Paul.