Is this with Python 3.7, 3.8, or 3.9? Could that be what changed? Perhaps newer Pythons are allowing control characters to be escaped in some way on reading in internally and then converting them back when writing them out.
I thought I had seen some change related to that to allow arbitrary bytes in file names for Linux somewhere in python. Maybe there is command line flag that now controls this behaviour?
All a wag on my part but it really does seem strange!
|