Antoine Pitrou <pit...@free.fr> added the comment: 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... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8663> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com