|
2026-02-27
| ||
| 15:52 | • Closed ticket [992d6f11]: ttk::entry placeholder length computation confuses string length and character length plus 6 other changes artifact: d887f86b user: jan.nijtmans | |
| 15:45 | Fix [992d6f1135]: ttk::entry placeholder length computation confuses string length and character length check-in: 32421984 user: jan.nijtmans tags: trunk, main | |
| 15:44 | Fix [992d6f1135]: ttk::entry placeholder length computation confuses string length and character length check-in: 769463e1 user: jan.nijtmans tags: core-9-0-branch | |
| 15:05 | • Ticket [992d6f11] ttk::entry placeholder length computation confuses string length and character length status still Open with 6 other changes artifact: 2385887c user: oehhar | |
| 13:13 | • New ticket [992d6f11]. artifact: 32e15975 user: oehhar | |
| Ticket UUID: | 992d6f113541d287cf6db907ef0e30b87bff7f8b | |||
| Title: | ttk::entry placeholder length computation confuses string length and character length | |||
| Type: | Bug | Version: | 9.0.3, main | |
| Submitter: | oehhar | Created on: | 2026-02-27 13:13:58 | |
| Subsystem: | 07. [entry] | Assigned To: | oehhar | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2026-02-27 15:52:57 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2026-02-27 15:52:57 | |||
| Description: |
Within this Tk lib ticket: https://core.tcl-lang.org/tklib/tktview/e5337a28466fb6cd9310e14d125fa89272a41ae4 Christian Werner remarks that the length of the replacement string uses "strlen" instead of character length. Here is the proposed patch (thanks Christian): https://androwish.org/home/info/54d2f6b404211874 Harald I was able to reproduce by in Tk 9.0.3: pack [ttk::entry .e2 -placeholder "ÄÖÜÄÖÜß"] This shows the interpretation of empty memory after the last character. If the bug shows up depends on the memory content after the placeholder string. So, multiple tries may be required. | |||
| User Comments: |
jan.nijtmans added on 2026-02-27 15:52:57:
Thanks! Fixed [32421984f1a350d2|here] (derived from Christian's patch) | |||
