[Python-Dev] PEP 528: Change Windows console encoding to UTF-8 (original) (raw)
Adam Bartoš drekin at gmail.com
Sat Sep 3 06:05:02 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 528: Change Windows console encoding to UTF-8
- Next message (by thread): [Python-Dev] PEP 528: Change Windows console encoding to UTF-8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The use of an ASCII compatible encoding is required to maintain compatibility with code that bypasses the TextIOWrapper and directly writes ASCII bytes to the standard streams (for example, [processstdinreader.py] <https://www.python.org/dev/peps/pep-0528/#process-stdinreader-py> ). Code that assumes a particular encoding for the standard streams other than ASCII will likely break.
Note that for example in IDLE there are sys.std* stream objects that don't have buffer attribute. I would argue that it is incorrect to suppose that there is always one.
Adam Bartoš -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160903/2515be15/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 528: Change Windows console encoding to UTF-8
- Next message (by thread): [Python-Dev] PEP 528: Change Windows console encoding to UTF-8
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]