This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients ezio.melotti, jaraco, lemburg, loewis, r.david.murray, serhiy.storchaka, vstinner
Date 2014-07-16.11:43:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1405511011.48.0.337439259104.issue21927@psf.upfronthosting.co.za>
In-reply-to
Content
Here I use the british pound symbol to attempt to answer that question. I've disabled the environment variable PYTHONIOENCODING and not set any code page or loaded any other Powershell profile settings.

PS C:\Users\jaraco> echo £
£
PS C:\Users\jaraco> chcp
Active code page: 437
PS C:\Users\jaraco> echo £ | py -3 -c "import sys; print(repr(sys.stdin.read()))"
'?\n'
PS C:\Users\jaraco> chcp 65001
Active code page: 65001
PS C:\Users\jaraco> echo £ | py -3 -c "import sys; print(repr(sys.stdin.read()))"
'?\n'
PS C:\Users\jaraco> echo £ | py -3 -c "import sys; print(repr(sys.stdin.buffer.read()))"
b'?\r\n'

Curiously, it appears as if powershell is actually receiving a question mark from the pipe.
History
Date User Action Args
2014-07-16 11:43:31jaracosetrecipients: + jaraco, lemburg, loewis, vstinner, ezio.melotti, r.david.murray, serhiy.storchaka
2014-07-16 11:43:31jaracosetmessageid: <1405511011.48.0.337439259104.issue21927@psf.upfronthosting.co.za>
2014-07-16 11:43:31jaracolinkissue21927 messages
2014-07-16 11:43:31jaracocreate