Author serhiy.storchaka
Recipients THRlWiTi, belopolsky, martin.panter, serhiy.storchaka, terry.reedy
Date 2019-10-04.11:59:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570190397.59.0.363957471919.issue22742@roundup.psfhosted.org>
In-reply-to
Content
It was fixed for all valid Unicode characters, you can still get an error when print a surrogate character to the stderr on Linux:

>>> import sys
>>> print('\ud800', file=sys.stderr)
Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    print('\ud800', file=sys.stderr)
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 0: surrogates not allowed

In the Python REPL you get an escaped sequence.

>>> import sys
>>> print('\ud800', file=sys.stderr)
\ud800
History
Date User Action Args
2019-10-04 11:59:57serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, belopolsky, THRlWiTi, martin.panter
2019-10-04 11:59:57serhiy.storchakasetmessageid: <1570190397.59.0.363957471919.issue22742@roundup.psfhosted.org>
2019-10-04 11:59:57serhiy.storchakalinkissue22742 messages
2019-10-04 11:59:57serhiy.storchakacreate