Tk Source Code

Check-in [e0dd3fdb]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix [9e89324a0a]: spinbox parsing depends on the LC_NUMERIC locale
Downloads: See separate download page
Timelines: family | ancestors | descendants | both | core-8-6-branch
Files: files | file ages | folders
SHA3-256: e0dd3fdb594f867c71092ca98b233f86f97351f90482cd53eff8569e000c663b
User & Date: jan.nijtmans 2026-09-22 14:11:17.560
References
2026-09-24
08:19 • Ticket [9e89324a] spinbox parses its value with sscanf("%lf"), which depends on the LC_NUMERIC locale status still Open with 3 other changes artifact: 1926ae19 user: serhiy.storchaka
Context
2026-09-23
08:04
Fix [a9bd2ab98b], [f492c3de04]: keyboard input on Windows

Backport of the fixes from 9.0 and 9.1.

A WM_KEYDOWN message with VK_PACKET, sent for a character entered via an input method or the touch keyboard, was re-posted with the character as the virtual key code, so the KeyPress event had the keysym of a function key. Now no events are generated for the VK_PACKET key itself; the WM_CHAR message produced by TranslateMessage() generates the key events.

GetTranslatedKey() retrieved the WM_CHAR messages with GetMessageA(), so Windows converted the characters to the code page of the keyboard layout, and TkpGetString() decoded them with a code page guessed from the input language. When the two differed, the typed characters were mangled. Now the messages are retrieved as Unicode and the characters are stored as UTF-8 in the key event, and the code page machinery is removed.

Tests event-8.4, event-8.5 and event-8.6, and the missing testsendinput constraint. check-in: 4a7d6f6b user: serhiy.storchaka tags: core-8-6-branch

2026-09-22
14:28
Tcl_Free -> ckfree (for consistancy) check-in: 203ae933 user: jan.nijtmans tags: core-9-0-branch
14:11
Fix [9e89324a0a]: spinbox parsing depends on the LC_NUMERIC locale check-in: e0dd3fdb user: jan.nijtmans tags: core-8-6-branch
12:23
Fix [9e89324a0a]: spinbox parsing depends on the LC_NUMERIC locale check-in: 009719f2 user: jan.nijtmans tags: trunk, main
2026-09-21
08:34
[433261290b]: Keyboard shortcuts do not work with a non-Latin keyboard layout on Windows check-in: 41850679 user: oehhar tags: core-8-6-branch
Changes
Unified Diff Side-by-Side Diff Patch
Changes to changes.
Changes to generic/tkEntry.c.
Changes to generic/tkTest.c.
Changes to tests/constraints.tcl.
Changes to tests/spinbox.test.
Changes to win/tkWinTest.c.