[issue19977] Use "surrogateescape" error handler for sys.stdin and sys.stdout on UNIX for the C locale

Sworddragon report at bugs.python.org
Fri Dec 13 17:58:57 CET 2013


Sworddragon added the comment:

What would happen if we call this example script with LANG=C on the patch?:

---
import os
for name in sorted(os.listdir('ä')):
	print(name)
---

Would it throw an exception on os.listdir('ä')?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19977>
_______________________________________


More information about the Python-bugs-list mailing list