New submission from Yang Zhang <yaa...@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) messages: 94108 nosy: yang severity: normal status: open title: UTF-16 BOM is not written by socket.makefile (but is expected by read) type: behavior versions: Python 3.2 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7145> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com