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 James Hennessy
Recipients James Hennessy, graham.coster, martin.panter, methane, r.david.murray, serhiy.storchaka
Date 2019-11-26.18:28:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1574792891.16.0.729587440926.issue26730@roundup.psfhosted.org>
In-reply-to
Content
The quickest fix for the data corruption problem is to delete the line
    newfile.seek(file.tell(), 0)
from the rollover() method.

This doesn't fix the inconsistency of tell() and seek(), but it's very low risk.  It's technically a change to the API, that rollover() no longer preserves the seek position, but unless the user was writing only characters from the ISO-8859-1 character set, it wasn't working properly before anyway.
History
Date User Action Args
2019-11-26 18:28:11James Hennessysetrecipients: + James Hennessy, r.david.murray, methane, martin.panter, serhiy.storchaka, graham.coster
2019-11-26 18:28:11James Hennessysetmessageid: <1574792891.16.0.729587440926.issue26730@roundup.psfhosted.org>
2019-11-26 18:28:11James Hennessylinkissue26730 messages
2019-11-26 18:28:10James Hennessycreate