[New-bugs-announce] [issue7145] UTF-16 BOM is not written by socket.makefile (but is expected by read)
report at bugs.python.org
Thu Oct 15 22:55:41 CEST 2009
New submission from Yang Zhang <yaaang at gmail.com>:
When I call s.makefile('r',encoding='utf-16').read(), this expects a BOM,
but s.makefile('w',encoding='utf-16').write('hello') doesn't produce it.
This is asymmetric.
BTW is there a way to prevent the reading file from expecting a BOM?
components: Library (Lib)
title: UTF-16 BOM is not written by socket.makefile (but is expected by read)
versions: Python 3.2
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce