This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author YoSTEALTH
Recipients YoSTEALTH, martin.panter
Date 2018-01-11.12:17:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515673031.76.0.467229070634.issue32529@psf.upfronthosting.co.za>
In-reply-to
Content
Martin, your points got me thinking... to make a proper copy of a file, it should be done using bytes! Text IO could easily lead to corrupting your file.

for example (current function):
    with open(old_path, 'r', encoding='latin-1') as fsrc:
        with open(new_path, 'w') as fdst:
            copyfileobj(fsrc, fdst)

This would lead you to have wrongly encoded file with different filesize.
History
Date User Action Args
2018-01-11 12:17:11YoSTEALTHsetrecipients: + YoSTEALTH, martin.panter
2018-01-11 12:17:11YoSTEALTHsetmessageid: <1515673031.76.0.467229070634.issue32529@psf.upfronthosting.co.za>
2018-01-11 12:17:11YoSTEALTHlinkissue32529 messages
2018-01-11 12:17:11YoSTEALTHcreate