Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I generated a script for testing all characters:

with open('withtest.sh', 'w', errors='surrogatepass') as f:
    for i in range(0x100, 0x110000): print(f"echo 'label .l -text \"{chr(i)}\"; 
exit' | wish 2>/dev/null && echo OK '\\U{i:08x}' {chr(i)!r} || echo FAIL 
'\\U{i:08x}' {chr(i)!r}", file=f)

It takes a time. It tested around 20% of all characters for 6-7 hours. And it 
seems that all failed characters are colored emojies and all passed characters 
are non-colored. Seems it is related either to the font that provides colored 
emojies, or to the mechanism that interprets such fonts, or Tk just cannot 
correctly handle the output when such fonts are used (maybe reserve too small 
buffer or cannot interpret result code).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42225>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to