[New-bugs-announce] [issue22982] BOM incorrectly inserted before writing, after seeking in text file

MarkIngramUK report at bugs.python.org
Tue Dec 2 17:41:42 CET 2014


New submission from MarkIngramUK:

If you open a text file for append, but then perform any form of seeking, before attempting to write to the file, it will cause the BOM to be written before you text. See the attached file for an example.

If you run the test, take a look at the output file, and you'll notice the UTF16 BOM gets written out before each number.

I'm running a 2014 iMac with Yosemite.

----------
components: IO
files: append-test.py
messages: 232015
nosy: MarkIngramUK
priority: normal
severity: normal
status: open
title: BOM incorrectly inserted before writing, after seeking in text file
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file37345/append-test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22982>
_______________________________________


More information about the New-bugs-announce mailing list