[issue21927] BOM appears in stdin when using Powershell

Ezio Melotti report at bugs.python.org
Tue Jul 8 15:24:22 CEST 2014


Ezio Melotti added the comment:

I would argue that adding the BOM is a Powershell issue, and I'm not sure Python should do anything about it.
There are probably cases where people expects the BOM to be received by python, so stripping it is probably not an option.
As for detecting, it should happen automatically only if sys.stdin.encoding is set to 'utf-8-bom', but, by default, Python 3 uses 'UTF-8'.

----------
nosy: +lemburg, loewis
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21927>
_______________________________________


More information about the Python-bugs-list mailing list