On Tue, 20 Nov 2018 16:07:24 -0600, Tom Marchant wrote: >>> >>Doesn't UNPK just swap nybbles of the rightmost byte >It does do that. > >>and set all other zone bits to 0 regardless of character set? >No. It never sets the zone bits to 0. >It sets the zone bits to F when in EBCDIC mode and to 5 when in ASCII mode. > 5? I would have expected 3: for ( I = 48; I <58; I++ ) printf( "%x %c\n", I, I ); } 30 0 31 1 32 2 33 3 34 4 35 5 36 6 37 7 38 8 39 9
>Don't forget ASCII was a 7-bit code. IBM was probably among the first to >design an 8-bit extension. I don't know when an 8-bit ASCII standard was >introduced. > Hardly a standard; more a Babel: https://www.iana.org/assignments/character-sets/character-sets.xhtml -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN