Open covener opened 1 year ago
Regarding the “cp” command… I copied an untagged ebcdic text file from a user’s directory into /tmp using (cp and cp -p) and noticed the file tagging was left unchanged. It looked like the copied file was converted to ascii so I tagged as ascii.
Is this correct and the expected behavior? (I was expecting the copied file to be tagged ascii because it was converted).
thanks
I see, we have a heuristic in zoslib that detects the encoding of an untagged file. We should probably just disable auto-conversion in cp.
@IgorTodorovskiIBM is this problem/issue covered in a more general issue for zoslib? If so, can we cross-reference that issue and close this one?
@IgorTodorovskiIBM Do you think the cp
issue we found in libraries for "mixed" tagged files with IBM-1047 encoding is related to this?
This is a bizarre one, but once I had zopen coreutils in my path, my build failed when parsing a .x file that had been copied around.
But my test invocations of
cp
never had any issue.Eventually stumbled on this testcase that seems to corrupt the file contents, and it seems to be influenced by the file contents. Maybe some kind of sniffing that isn't shared by /bin/file since it reports text for both?
my odd result toward the end