Tk Source Code

View Ticket
Login
Ticket UUID: 0338867c742b9dd0706864b6f029a652fc96d42d
Title: Windows text widget hang Phaistos font installed
Type: Bug Version: 8.7 head
Submitter: E-Paine Created on: 2021-09-09 20:34:08
Subsystem: 18. [text] Assigned To: fvogel
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2021-09-21 18:30:21
Resolution: Fixed Closed By: fvogel
    Closed on: 2021-09-21 18:30:21
Description:
As-per https://bugs.python.org/issue45103, Tk hangs when trying to insert some characters when the Phaistos font is installed. Steps to reproduce:

- Install the Phaistos font (https://ctan.org/pkg/phaistos?lang=en)
- Load the Wish shell (I built from the 8.7 head)
- Add a text widget (`pack [text .t]`) and insert unicode character \u0966 (`.t insert end \u0966`).

Doing the above, both windows freeze and have to be killed. I was using Windows 10 21H1.
User Comments: fvogel added on 2021-09-21 18:30:21:
Thanks for your feedback. I have merged the fix into core-8-6-branch and trunk. It will be included in Tk 8.6.12 and the next alpha of Tk 8.7.

E-Paine added on 2021-09-21 10:42:50:
Fix working on my system. Thanks.

fvogel added on 2021-09-20 20:36:20:

Reproduced. Indeed Tk is looping endlessly in LoadFontRanges().

Fixed in [0d90e4bac9], please test.