[issue4964] UTF-16 stream codec barfs on valid input

2009-01-16 Thread Guido van Rossum
Guido van Rossum added the comment: Dang. Already fixed in trunk. (Is it fixed in 3.0.1 too?) -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue4964] UTF-16 stream codec barfs on valid input

2009-01-16 Thread Guido van Rossum
New submission from Guido van Rossum : I am attaching a file encoded in UTF-16 (with bom) which causes the stream codec employed by the file reader to barf when reading by lines. However reading the file in binary mode and decoding it in one fell swoop works fine, and reading the whole text file