Jason R. Coombs added the comment:

I'm not sure what you're suggesting. Are you suggesting that Powershell is 
wrong here and that Powershell's attempt here to provide more detail about 
content encoding is wrong? Or are you suggesting that every client that reads 
from stdin should detect that it's running in Powershell or otherwise handle 
the BOM individually?

>From my perspective, Powershell is innovating here and providing additional 
>detail about the encoding of the content, but since Python is responsible for 
>the content decoding (especially Python 3), it should honor that detail.

I did some tests and determined that 'utf-8-sig' will honor the bom if present 
and ignore it if missing. Is there any reason Python shouldn't simply use that 
encoding for decoding stdin?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21927>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to