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 pablogsal
Recipients BTaskaya, Mark.Shannon, ammar2, aroberge, brandtbucher, miss-islington, nedbat, pablogsal, serhiy.storchaka, terry.reedy
Date 2021-07-16.21:51:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1626472282.69.0.695461385871.issue43950@roundup.psfhosted.org>
In-reply-to
Content
We can probably leverage the unicodedata_UCD_east_asian_width_impl function in the unicodedata extension module to get the width of every character as emojis normally take 2 characters in the terminal. We could expose the necessary functions from there and use them in the _PyPegen_byte_offset_to_character_offset function
History
Date User Action Args
2021-07-16 21:51:22pablogsalsetrecipients: + pablogsal, terry.reedy, nedbat, aroberge, Mark.Shannon, serhiy.storchaka, ammar2, miss-islington, brandtbucher, BTaskaya
2021-07-16 21:51:22pablogsalsetmessageid: <1626472282.69.0.695461385871.issue43950@roundup.psfhosted.org>
2021-07-16 21:51:22pablogsallinkissue43950 messages
2021-07-16 21:51:22pablogsalcreate