Message223189
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. |
|
Date |
User |
Action |
Args |
2014-07-16 11:43:31 | jaraco | set | recipients:
+ jaraco, lemburg, loewis, vstinner, ezio.melotti, r.david.murray, serhiy.storchaka |
2014-07-16 11:43:31 | jaraco | set | messageid: <1405511011.48.0.337439259104.issue21927@psf.upfronthosting.co.za> |
2014-07-16 11:43:31 | jaraco | link | issue21927 messages |
2014-07-16 11:43:31 | jaraco | create | |
|