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 terry.reedy
Recipients ezio.melotti, malin, ned.deily, serhiy.storchaka, taleinat, terry.reedy
Date 2019-10-04.05:02:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570165370.43.0.773212039953.issue13153@roundup.psfhosted.org>
In-reply-to
Content
A week ago, I thought that the astral solution was to always replace with the \U escape.  With this patch, we can and should send them to read-only text windows, and let the OS and font display it or a substitute.  On Windows, at least, the emoji which beginners most often want to use get displayed.

Elsewhere, we will have to check and do some follow-up patches.  For using file names with astral chars results, on Windows, in six large boxes, and when the file is saved, it is saved in a new file with the boxes, not the original file.  Such file names are not added to the recent files list, or maybe list boxes cannot handle them.

Code is another issue.  Astral chars in files could be replaced when read.  Unfortunately, I believe some are legal identifier chars.  On the clipboard, on Windows, astral chars become sequences of 6 surrogates.

>>> r.clipboard_clear()
>>> r.clipboard_append('🚀')
>>> r.clipboard_get()
'\udced\udca0\udcbd\udced\udcba\udc80'

Perhaps we should try to intercept paste and replace such sequences with the \U escape.
History
Date User Action Args
2019-10-04 05:02:50terry.reedysetrecipients: + terry.reedy, taleinat, ned.deily, ezio.melotti, serhiy.storchaka, malin
2019-10-04 05:02:50terry.reedysetmessageid: <1570165370.43.0.773212039953.issue13153@roundup.psfhosted.org>
2019-10-04 05:02:50terry.reedylinkissue13153 messages
2019-10-04 05:02:50terry.reedycreate