On Mon, Aug 8, 2016 at 12:03 PM, William A Rowe Jr <[email protected]> wrote:
> Easier is to do a compile time comparison of '\n' to 0x15 vs 0x25. But I
> need to know the mystery of 0x25's value through iconv on your architecture.
> Please research, if they simply trade places we are fine. If they both map
> to 0x0A in ASCII we simply treat them as equal in our comparison fn. And the
> resulting table will be correct irrespective of what iconv munging has been
> performe

On z/OS the 15 and 25 are inverted:

$ printf "\r\n\x25" |od -t x1
0000000000    0D  15  25
0000000003
$ printf "\r\n\x25" |iconv -f IBM1047 -t ISO8859-1|od -t x1
0000000000    0D  0A  85

(same result for 037 codepage, confirmed character constants compiled the same)

Reply via email to