Inada Naoki <songofaca...@gmail.com> added the comment:
@Serhiy, would you create a pull request based on your patch? Or may I? @James it doesn't make sense at all. It breaks the file even when only ASCII characters are used. f = SpooledTemporaryFile(mode="w+") f.write("foobar") f.seek(3) f.rollover() f.write("baz") ---------- title: SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written -> SpooledTemporaryFile rollover corrupts data silently when Unicode characters are written _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue26730> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com