[issue1753] TextIOWrapper.write writes utf BOM for every string

2008-01-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue1753] TextIOWrapper.write writes utf BOM for every string

2008-01-07 Thread Alexandre Vassalotti
Changes by Alexandre Vassalotti: -- resolution: -> fixed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue1753] TextIOWrapper.write writes utf BOM for every string

2008-01-07 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed fix in r59832. Thanks! P.S. Guido, what this comment, in write(), is about? # XXX What if we were just reading? __ Tracker <[EMAIL PROTECTED]> __

[issue1753] TextIOWrapper.write writes utf BOM for every string

2008-01-07 Thread Georg Brandl
Changes by Georg Brandl: -- priority: normal -> high __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1753] TextIOWrapper.write writes utf BOM for every string

2008-01-07 Thread Georg Brandl
Changes by Georg Brandl: -- assignee: -> alexandre.vassalotti nosy: +alexandre.vassalotti __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-lis

[issue1753] TextIOWrapper.write writes utf BOM for every string

2008-01-07 Thread Erick Tryzelaar
New submission from Erick Tryzelaar: I was playing around with python 3's io functions, and I found that when trying to write to an encoded utf-16 file that TextIOWrapper.write re-writes the utf-16 bom for every string: >>> f=open('foo', 'w', encoding='utf-16') >>> print('1234', file=f) >>> p