Message238277
I uploaded the patch just before your comment Nick.
Here is updated patch. Functions are renamed as Nick suggested, added two more functions: decompose_astrals() and compose_surrogate_pairs(). They are mainly for example here, they can be committed in other issue.
I hesitate about the rehandle_surrogatepass name. This function handles surrogates than can be created not only with the "surrogatepass" handler, but also with different ways, e.g. with the "surrogateescape" handler, with chr(), handle_astral() or decompose_astrals(). Actually it checks that the string is valid Unicode (not containing surrogates) and handle errors if found with specified error handler.
May be there is a time for wider discussion on Python-Dev. I especially want to hear opinions of Ezio and Martin. |
|
Date |
User |
Action |
Args |
2015-03-17 11:13:28 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, ncoghlan, pitrou, vstinner, ezio.melotti, Arfrever, r.david.murray |
2015-03-17 11:13:28 | serhiy.storchaka | set | messageid: <1426590808.43.0.598474585118.issue18814@psf.upfronthosting.co.za> |
2015-03-17 11:13:28 | serhiy.storchaka | link | issue18814 messages |
2015-03-17 11:13:28 | serhiy.storchaka | create | |
|