Message256744
For now the error message virtually always contains the name (unless the length of its UTF-8 representation > INT_MAX). With unicode_name_maxlen.patch it doesn't contains the name of length few hundreds or tens characters.
Proposed patch makes the error message always contain the name, but truncated to NAME_MAXLEN bytes.
>>> name = ''.join(map(chr, range(0x2c80, 0x2ce4)))
>>> unicodedata.lookup(name)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError: "undefined character name 'ⲀⲁⲂⲃⲄⲅⲆⲇⲈⲉⲊⲋⲌⲍⲎⲏⲐⲑⲒⲓⲔⲕⲖⲗⲘⲙⲚⲛⲜⲝⲞⲟⲠⲡⲢⲣⲤⲥⲦⲧⲨⲩⲪⲫⲬⲭⲮⲯⲰⲱⲲⲳⲴⲵⲶⲷⲸⲹⲺⲻⲼⲽⲾⲿⳀⳁⳂⳃⳄⳅⳆⳇⳈⳉⳊⳋⳌⳍⳎⳏⳐⳑⳒⳓⳔ�...'" |
|
Date |
User |
Action |
Args |
2015-12-19 23:12:32 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, lemburg, pitrou, vstinner, christian.heimes, benjamin.peterson, ezio.melotti |
2015-12-19 23:12:32 | serhiy.storchaka | set | messageid: <1450566752.3.0.203707885216.issue23997@psf.upfronthosting.co.za> |
2015-12-19 23:12:32 | serhiy.storchaka | link | issue23997 messages |
2015-12-19 23:12:32 | serhiy.storchaka | create | |
|