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 pitrou
Recipients pitrou, tarek, vstinner
Date 2010-05-08.23:06:17
SpamBayes Score 0.00017393312
Marked as misclassified No
Message-id <1273359979.2.0.0212908546226.issue8663@psf.upfronthosting.co.za>
In-reply-to
Content
Ok, this might be more interesting:

$ cat | ./python -i
Python 3.2a0 (py3k:81010, May  8 2010, 23:25:47) 
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import locale
>>> locale.getpreferredencoding()
'UTF-8'
>>> import sys
>>> sys.stdin 
<_io.TextIOWrapper name='<stdin>' encoding='ascii'>
>>> sys.getdefaultencoding()
'utf-8'

As you see, stdin uses ascii...
History
Date User Action Args
2010-05-08 23:06:19pitrousetrecipients: + pitrou, vstinner, tarek
2010-05-08 23:06:19pitrousetmessageid: <1273359979.2.0.0212908546226.issue8663@psf.upfronthosting.co.za>
2010-05-08 23:06:17pitroulinkissue8663 messages
2010-05-08 23:06:17pitroucreate