[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: Why are you saying this isn't an issue in 2.6.5? It behaves exactly the same as 2.7.1. In any case, this is not a bug. Pass encoding="utf-8-sig" to io.open to have the signature stripped when the file is read. -- resolution: -> invalid status: open

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
onpon4 added the comment: Like this: f = io.open() f.readline() -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: Can you please be more specific? What do you mean by "text loaded from a UTF-8 text file"? How specifically did you load it? -- nosy: +loewis ___ Python tracker

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
New submission from onpon4 : This is for Python 2.7.1. It isn't an issue on 2.6.5 and I haven't tested it on 3.1. Quite simply, the Unicode BOM (unichr(65279)) is included in the text loaded from a UTF-8 text file. This can cause issues in some cases, but is easily worked around by calling "s