Open chrishodgins opened 7 months ago
Thanks, this is similar to the issue raised for nano. https://github.com/ZOSOpenTools/nanoport/issues/11
Most zopen tools leverage zoslib, which is the culprit here. You can try using the environment variable mentioned in the nano issue until we have a proper fix.
@IgorTodorovskiIBM thanks, I can confirm that setting export __UNTAGGED_READ_MODE=ASCII
did resolve the issue for the moment.
With the following perl program the output will appear corrupted unless the file is greater than 8 bytes in size. The file
untagged-file-with-ebcdic.txt
is untagged and only contains EBCDIC characters.Perl test program:
Shell example:
Repeating the same sequence with the file tagged as IBM-1047: